Question about the app status?

as I know there’s 3 status or more for any app

– running in front-end (the user actually uses the application)
– running but in the background
– not running at all

how to detect these status with ionic - or if there’s a cordova plugin for that ??

You can listen to the pause and resume events of Platform for the first two. The third is sort of impossible by definition: running something in an app in order to detect that the app isn’t running is a catch-22.

if you see
any app does not send a push notification while (the app running in front-end)
it only send it - in the last two cases(running in backend or not running at all)

  • that’s the purpose of my question