-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PushNotification .on('registration', function(data) {} on ios with APNS is not executed! #202
Comments
adding |
Thank you very much! |
i also noticed 'registration' is not called within the simulator - so you have to plug in your device |
I'm having the same issue but |
@geoidesic, check the pull request (#283 ) I just published. It might help you. |
Bug Report
Hi, Previously we always used the cordova-plugin-push but because it is deprecated we switched to havesource/cordova-plugin-push.
On android with GCM it works perfectly. But on ios with APNS the push.on('registration', function(data) {} is not fired/triggerd/executed.
Please help me out!
Expected Behaviour
push.on('registration', function(data) {} needs to fired/triggerd/executed
Actual Behaviour
push.on('registration', function(data) {} is not fired/triggerd/executed.
Reproduce Scenario (including but not limited to) / ### Steps to Reproduce
Install cordova project with this plugin and use the APNS way. The APNS is used when there is no google plist file in your config or root folder. Put a Alert or Console.log in the push.on('registration', function(data) {} and test it.
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
iphone simulator with iOS 14 or higher
Sample Code that illustrates the problem
`
var push = PushNotification.init({
android: {
senderID: "",
icon: "push",
iconColor: "blue",
forceShow: true,
soundname: "mysound",
sound: "true"
},
browser: {
pushServiceURL: 'http://push.api.phonegap.com/v1/push'
},
ios: {
alert: "true",
badge: "true",
clearBadge: "true",
soundname: "mysound",
sound: "true"
},
windows: {}
});
});
`
Thank you very much!
Kind regards,
Xander
The text was updated successfully, but these errors were encountered: