Open Sherlouk opened 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"
"tag", "exists", "subscribed_ROBOTID"
"tag", "exists", "live_notifications"
This will mean the notification goes to all the correct users!
Note to self: https://documentation.onesignal.com/docs/using-postman
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!