-
Notifications
You must be signed in to change notification settings - Fork 1.9k
push.on('notification') not fired on resume ios 10.2 #1565
Comments
@manojrejinthala please try the 1.9.x version of the plugin as there were some fixes for iOS 10. |
while giving the ios build it gives me the GoogleCloudMessaging.h file not found error. how can i fix that issues with plugin with 1.9.x |
I fixed the above issue @macdonst and i am successfully build the application with 1.9.2 version of push plugin still push.on('notification') not fired on resume ios 10.2 . Any other solutions to fix this issues. |
@manojrejinthala Hey, can you show me the json that you are sending from your server to your IOS devices? |
@manojrejinthala Are you sending messages from Firebase?
That worked for me. I'm using version 1.9.2 of the plugin. Hope it helps. |
Closing, inactivity. Please comment/re-open if you have more details. |
This thread has been automatically locked. |
Expected Behavior
When App resume handles notification, which performs an action on receiving push notification .
Actual Behavior
App opens but handlers does not receive the notification or data.
but its working fine android and iPad(IOS version of 9) in both cased when the app is cold-start and on resume.
Even i looked at the issue raised on #1002 and #1253
Reproduce Scenario (including but not limited to)
iOS 10 beta 1
Open app (can be running through XCode so you can see output)
Press home button
Send a notification
Press the notification
App opens, view the output on XCode
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iOS 10 beta 1 on iPhone 6.
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Cordova CLI version and cordova platform version
CLI version: 6.1.1
cordova ios 4.1.1
Plugin version
1.8.4
here is my sample code .
//push notification code for getting device token.
push = PushNotification.init({
android: {
senderID: "61426985247",
sound: "true",
vibrate: "true",
Please help me out to solve this problem.
The text was updated successfully, but these errors were encountered: