Question

Taken from PubNub's website:

PubNub Offline Mobile Push -- PubNub also provides a fallback mechanism for messages to mobile devices for when the mobile app is not running (or in the background). PubNub can fall back to a mobile “push notification”, ensuring the mobile end-user is notified even when the phone is in their pocket. As soon as the app is launched, the app will begin using PubNub’s Real-Time network again.

My question is: If we publish a message and the designated client is offline, Does PubNub "translates" the message to a push notification automatically or should we handle it by our own? (The structure & parameters of a regular message and a push notification is very different)

Was it helpful?

Solution

PubNub Mobile Push Fallback

PubNub's Mobile Push add-on feature allows you to automatically receive messages in the background or while the app is not running. The message delivery is automatically delivered only as a fallback option. When the app is running the messages will be delivered to the client mobile app via PubNub's Global Realtime Network Data Streams Service.

When does APN Activate

PubNub will write messages over APNs with appropriate { "apn" : ... } field defined in the message payload. While the app is in the background or not running, the message is received on the mobile device. If the app is already running in the foreground, then the messages are ignored by the client. This way you can be sure the message is delivered to the even if the app isn't running.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top