Greetings,
Is this possible now? Receiving Push notifications purely on REST without native backendless SDK.
I was following a thread one year old where this wasn’t possible.
Regards,
George
Greetings,
Is this possible now? Receiving Push notifications purely on REST without native backendless SDK.
I was following a thread one year old where this wasn’t possible.
Regards,
George
Hi Odhiambo,
The push notifications cannot be received without a device: there should be some external notification service which handles all this (like Apple Notification Service or Google Cloud Messaging). You can send a push message via REST API, but how do you imagine receiving it via REST? Probably what you actually mean is publish-subscribe scheme, which is possible anywhere you can call .subscribe() and wait for messages to come.
Hello Sergey,
Am registering a device supplying backendless with the following request Body via REST.
Request Body:
{
"deviceToken" : value,
"deviceId" : value,
"os" : "ANDROID",
"osVersion": value
}
The deviceToken is from an external notification service.
Backendless SDK has
com.backendless.push.BackendlessPushService
where we override onMessage to recieve notifications.
Is it mandatory to use this or can the notification also be recieved in the external notification service own onMessageRecieved callbacks.
A while back pub/sub was not functional for when the application is in the background. Is this possible now?
Regards,
George
By external notification server do you mean a google/apple one or something else? Is it a real device, and what OS does it use? Our implementation works only with Google and Apple push services (and maybe with Amazon, but I’m not entirely sure about that one).
Yes, you’re right, pub/sub messages are probably still may not always be delivered when the app is in background - it depends on whether Android system would kill the app’s background service, which it actually may do in certain circumstances.
Hi Sergey,
Yes it’s a real device running android OS.
The notifications service is Firebase from where am getting the token.
George
You can use REST api https://backendless.com/docs/rest/doc.html#messaging_publish_push_notifications
But you should register device before send a push https://backendless.com/docs/rest/doc.html#messaging_device_registration
or register it with native sdk