-
Notifications
You must be signed in to change notification settings - Fork 1.9k
iOS 10 is not firing the 'notification' event after clicking on a notification when the app is in hibernate #1199
Comments
Same here! If the app is killed and opened from the notification it works fine. But if it has been put to the background recently it doesn't trigger the notification event. iOS Device: iPhone 6 |
I can also reproduce this with IOS 10.0.1 GM, cordova-ios 4.2.1, phonegap-plugin-push 1.8.1 |
Same here. |
Hey all, I'm traveling for work all next week, 4 cities in 8 days, so if anyone can help out with this issue that would be great. |
+1 |
+1 consistently reproduces. |
Updating my dev environment in order to look at this. Hope for some news soon but any help is still appreciated. |
Yup, I can reproduce it. After much struggling with iOS signing certs. |
…king on a notification when the app is in hibernate
@NickAdriaenssens Okay, I did a quick fix for this issue which I pushed up to the |
Looks good on my end. Back to how it was before iOS 10. |
@macdonst Thank you for looking into this! |
came across this issue as well. Good to hear that it is fixed. |
|
@NickAdriaenssens @denyo any chance of you testing on iOS 9 devices as well? With me being on the road I only had one device which I had to upgrade for iOS 10 to reproduce the issue. |
@macdonst It is working on iPhone 6 and iPad Mini with iOS 9.3.2 |
Great, I merged it into master and I will release a 1.8.2 sometime today. |
Hi thanks a lot. |
@WilsonFpz yeah, you should just be able to do |
Hello, I installed Phonegap today (npm install phonegap@latest), created a sample project with the tutorial on their site http://docs.phonegap.com/tutorials/develop/push-notifications/ But I am still having the issue described in this thread. Here are the steps to reproduce. These are the plugin versions I am using:
I then run the freshly download iOS PhoneGap app on my iOS 10.0.2 iPhone 6S. All looks good. Then, from the windows command line, I run the following commands to send notifications:
When the app is in the foreground, I get these notifications - everything is fine. What I expect from those 3 commands, when my PhoneGap app is in the background:
Am I doing something wrong? What should I check for? I am new at this but I have spent the past 3 hours looking into the issue, without success. Thanks for this amazing project and good luck for the future, I'll contribute any way I can. |
Hi Macdonst, It seems I am not alone to face this issue :-) I have just replaced all the "console.log" by "alert" in push.js (1.8.2), put the new app in background, received a notification, clicked on it. The app is resumed but nothing happens and no alert displayed. If the app was killed before receiving the notification, the app does what I expect it to do. Still don't know what to do... Please... :-) |
Hi, Thank you. |
@KranthiVallamreddy please comment on #1265 as this issue is closed. |
This thread has been automatically locked. |
After clicking on a notification a hibernated app should open and the 'notification' event should fire, this is not the case for iOS 10 devices. The app opens but the event is not fired.
Tested on iPad Pro and iPhone 5S.
iOS version: iOS 10 public beta 6 & 7
Cordova version: 6.2.0
Cordova iOS version: 4.2.0
Plugin version: 1.8.1
The text was updated successfully, but these errors were encountered: