Mobilefirst Push Notification doesn't work if

2019-08-13 18:57发布

问题:

I'm working with MFPF CLI version 7.1.0.00.20160129-1927, I'm using my own project (Ionic) and the hybrid sample provided by the getting started module. In both case I'm able to subscribe and receive push notifications. But when I remove the app from recent list I'm not more able to receive push notification. The adapter message returned is with a positive result. The phone is an Android 5.1 Are there some issue we have to care about to have it working when the app is removed from recent list (but user is subscribed)? Thanks on advance for help.

回答1:

Below are four possible scenarios and their expected and tested results:

  1. App is open and in the foreground
  2. App is open and in the background
  3. App is closed by sliding it off
  4. App is force-closed

Notifications are received and the app can be opened in scenarios 1-3, as expected.
Notifications will not be received in the device in scenario 4, as expected.