runmyrobot / letsrobot_ios

iOS client
BSD 3-Clause Clear License
1 stars 1 forks source link

SERVER: Push Notifications #73

Open Sherlouk opened 7 years ago

Sherlouk commented 7 years ago

The server needs to be capable of sending "go live" notifications when a robot goes online and the user is subscribed.

The API information is here: https://documentation.onesignal.com/v3.0/reference#create-notification https://documentation.onesignal.com/v3.0/reference#section-example-code-create-notification https://documentation.onesignal.com/v3.0/reference#section-formatting-filters

In the request we need to do a filter for: "tag", "exists", "subscribed_ROBOTID" AND "tag", "exists", "live_notifications"

This will mean the notification goes to all the correct users!

Sherlouk commented 7 years ago

Note to self: https://documentation.onesignal.com/docs/using-postman