0

If an app is in the background, and the user receives the push, and the user taps on the notification, thus making the app active, how do I detect in PubNub whether the app was brought from the background as in this case? Help is much appreciated! Thanks!

John Doe
  • 1,005
  • 2
  • 8
  • 23

1 Answers1

0

Android & iOS have delegates/events that handle this and at that point, you could manually do whatever is necessary. However, PubNub's SDKs reconnect and retrieve missed messages automatically. Android requires some extra code but pretty trivial. There are is some level of customization that you can do when you initialize PubNub in the app.

See the Android SDK docs and iOS SDK docs for more details and contact support@pubnub.com, if needed.

Craig Conover
  • 4,710
  • 34
  • 59