Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 858
  • Last Modified:

how to get notification when app is not running in Android Push Notification

Hello,
Android push notification work good when app is open. but how to get notification on app close..i,e. app run in background to get notification
0
citadelind
Asked:
citadelind
1 Solution
 
xeroxzeroxCommented:
You should search task cleaner,task killer and tast manager to know about which service running in android phone.
you can find out if your own application is getting opened or closed using the function from the lifecycle.

Using the same functions you can deduce you are being send to the background, so that's a bit like finding out something is happening, although it doesn't need to be another app (it could just be 'home'). Also, you won't get the notice what app is being run.

As far as I know there is no "this application is being started" trigger, but you could go the long way around: just like taskkillers do, you can ofcourse find out what tasks are being run. If one is added, then you can kind-off be sure it is being started, and so there you could create some sort of trigger for yourself.
0
 
citadelindAuthor Commented:
no
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now