ostownsville / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
21 stars 17 forks source link

onNotification event is not fired on ios if app is not running #18

Closed JumBay closed 6 years ago

JumBay commented 6 years ago

Hi,

On iOS (11), if I receive a notification but the app is killed, tapping on the notification opens the app but the onNotification method is never called.

Works fine on Android.

Any idea how to fix it?

Thanks.

ironbone commented 6 years ago

Confirmed. See my report for mor tests.

luigi37 commented 6 years ago

Confirmed. Tried with iPhone 5C 10.3.3 and iPhone 5S 11.0.3 with same behaviour: 1- app in foreground: the notification call onNotification event 2- app in background: clicking the notification you open the app and call onNotification event 3- app killed: clicking the notification you open the app BUT NOT call to onNotification event 4- phone just restarted: clicking the notification you open the app BUT NOT call to onNotification event

ironbone commented 6 years ago

The same im my tests: https://github.com/ostownsville/cordova-plugin-fcm/issues/19#issuecomment-337570716

chrisjpalmer commented 6 years ago

Hi guys. If you don't mind I might close this issue and like @ironbone said checkout https://github.com/ostownsville/cordova-plugin-fcm/issues/19 instead.