-
Notifications
You must be signed in to change notification settings - Fork 57
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
IOS 8.3, nor successhandler nor errorhandler is called when registering #42
Comments
Hi Team, pushNotification = window.plugins.pushNotification is giving an empty object The plugin got successfully installed. PushPlugin.h and PushPlugin.m are present in Plugins folder. Please help. Am I missing anything? |
Did you include PushNotification.js in your index.html file? |
I had a similar problem, and have discovered the following:
function initializeIosPush(){
Best regards, Mike |
More info:
Weirdly, if I have notifications enabled when I delete and then reinstall the app, it works again... somehow the previous "notifications disabled" state seems to leak into reinstalls... In any case, disabled notifications shouldn't result in no callback at all, and no permissions popup on fresh install of the app. For reference, here's the code that calls the init code:
I do wait for deviceReady to fire before any of this code runs. |
I can now confirm this happens when running the app without installation with TestFlight. I install with xcode and have the exact same problems. I can also reproduce with this simpler sequence:
|
Further weirdness. As an experiment to get around the problem, I switched to this code: function initializeIosPush(){ function successHandler(result){ function failureHandler(result){ (it may not have been apparent from my previous postings: I should have mentioned I've been using ngCordova, except for your areNotificationsEnabled call, which they do not support) This does prevent the problem, though I don't know why, because here's the weirdness: the success handler is always called, even when notifications are disabled! |
Hi Guys,
i used the original phonegap-build, now i've just installed this version. and when calling the register-function no succes or error-handler is being called. My iphone already is setup to allow push-notifications for this application. so I dont get the popup. But On my ipad(ios 8.0.2), still the success-handler is called, and passes the apn-token, on my iphone, nothing is called, so I don't get the token for sending the notifications. Is it something I am doing wrong? Or is this a geniune issue with ios 8.3?
The text was updated successfully, but these errors were encountered: