Skip to content

Prevent an iOS crash from didRegisterForRemoteNotificationsWithDeviceToken #245

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

Closed
wants to merge 2 commits into from

Conversation

neoalienson
Copy link

didRegisterForRemoteNotificationsWithDeviceToken is being called from AppDelegate but send Plugin success result before plugin being init. As a result callbackId is nil and crash CDVPlugin on iOS.

During application starts didRegisterForRemoteNotificationsWithDeviceToken from AppDelegate is fired. It would cause didRegisterForRemoteNotificationsWithDeviceToken from PushPlugin called but a plugin success result is generated.
EddyVerbruggen added a commit to Telerik-Verified-Plugins/PushNotification that referenced this pull request Jun 29, 2014
@EddyVerbruggen
Copy link

Manually partly merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants