I have a chat app, when my app is in the background (called HOME button), my app is running countiniously…
When on my app a user initiate a private chat with me, i d like to showing up a notification.
So how I can check in my app, that my app is in the background?
Leslie
I think the easiest way is to use onPause in your chat activity:
See the Activity lifecyle docs for more details.