Is it possible to identify whether the app is in the foreground or background when a push notification is received? I'd like an app to behave differently depending on whether the app is in focus or not. Thanks!
Is it possible to identify whether the app is in the foreground or background when a push notification is received? I'd like an app to behave differently depending on whether the app is in focus or not. Thanks!
Hello Chris,
You recieve nofifications even the app in the background.
Hi Sergiy,
Thanks for the reply. Perhaps I did not make myself clear. I know that the app receives push notifications even when the app is in the background, but I'd like to know whether it is possible to identify whether the app is in the background or not so that the app can respond differently when in the background.
These references should be useful:
http://stackoverflow.com/questions/58...
http://stackoverflow.com/questions/36...
Thanks Alena. I'll give it a go.