Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Push notification not showing if app was killed

  • I’ve got push notifications working, but if the app gets forced closed on android the notification does not show. is there a way around that? I haven’t tested that on ios yet.

  • Monaca

    @wilsonmfg Which 3rd party plugin are you using for push notification. I think you should read about how force closed application would affect push notification. This thread might be useful for you. Hope this helps.

  • That’s not an easy problem to solve. Check:
    To receive notification when app is stopped you’ll have to create a background service - although a few device manufacturers keep a whitelist of apps that receive notifications even when closed.
    Unfortunately, there is no support for background services in Cordova so you’ll need to create a native service in Java.

  • well it looks like this forum isn’t sending me emails despite “watching” the thread.

    since this is the Monica Tools forum i thought it would be clear I’m using the Monica backend.

    I dont’ know what changed, but I’m suddenly getting notifications, i didn’t even reinstall my app. app manager even shows “zero memory used in last 3 hours” despite getting several notifications. I haven’t opened the app today. so whatever it is, it’s working as i’d expect at this point.

    FWIW, I’m not actually using the app manager force close, but another app that closed background app. if I don’t use this opening things like Maps freezes my older phone terribly.