Skip to content

Prevent an iOS crash from didRegisterForRemoteNotificationsWithDeviceToken#245

Closed
neoalienson wants to merge 2 commits into
phonegap-build:masterfrom
neoalienson:master
Closed

Prevent an iOS crash from didRegisterForRemoteNotificationsWithDeviceToken#245
neoalienson wants to merge 2 commits into
phonegap-build:masterfrom
neoalienson:master

Conversation

@neoalienson
Copy link
Copy Markdown

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
Copy Markdown

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