fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
624 stars 998 forks source link

New Feature needed NUserNotificationCenter to handle push notification in iOS10 #148

Open sonrebmax opened 7 years ago

sonrebmax commented 7 years ago

Anyone can add this feature NUserNotificationCenter to handle push notification in iOS10 in this project? like this https://github.com/phonegap/phonegap-plugin-push/pull/1279 ?

Thanks

benny1308 commented 7 years ago

Facing the same issue, if the ios app is suspended in the background, see here the execution states: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/TheAppLifeCycle/TheAppLifeCycle.html#//apple_ref/doc/uid/TP40007072-CH2-SW3 I get the push notification, but if the app wakes up (resume), the onNotification callback isn't called.

Cheers, Ben

benny1308 commented 7 years ago

Nobody facing the same issue? Does your ios 10 device fire onNotification callback after hours in the background, and opening other apps in the meantime? Benny

maxotov commented 7 years ago

Did you try add this feature to FCMPlugin code? I get messages from fcm in the foreground, but in background push notification not showing.

davidperrenoud commented 7 years ago

I tried to update to Firebase 3.9.0 without success.

In the meantime compiling with Xcode 7.3.1 makes background notifications work on iOS 10.