I'm using phonegap 3.5. It all seems to works perfectly (i.e. pushNotification.setApplicationIconBadgeNumber works fine), but when i call pushNotification.registerDevice, no callbacks is fired (neither the fail one), so i can't receive the token and the subscribers counter remains 0.
- I configured the application with the ios automatic procedure (apple id and password)
- I followed the pushwoosh guide (https://www.pushwoosh.com/programming-push-notification/ios/ios-additional-platforms/push-notification-sdk-integration-for-phonegap/)
- I added manually the gap:plugin line in the config.xml
- after hitting my head on the keyboard several times (i suggest you to write down this in the docs!), i figure out i should add manually the PushNotification.js file within the www folder and reference it in the head of my html page, right after jquery.js and cordova.js (otherwise window.plugins would remain undefined).
Am i missing something?
Thank a lot for the help
Please sign in to leave a comment.