PubNub can receive a message on an iPhone or Android device when the client app is inactive. This can be accomplished via a native Android app. PubNub runs a background process that boots when the device turns on. Then through Android Intents the app can be notified when a message from PubNub is received. This solution is very energy efficient (concerning battery discharge) due to the keep-alive policy for the open socket connection managed by PubNub.
Can I use PubNub for long-running subscription to push notifications?
Modified on: Fri, Jul 13, 2018 at 5:16 PM
Did you find it helpful?
Can you please tell us how we can improve this article?