Commit 7052c9ce authored by Simon MacDonald's avatar Simon MacDonald
Browse files

Issue #169: PushNotification.init blocked the main thread

parent 5a393b83
Loading
Loading
Loading
Loading
+4 −0
Changes for src/ios/PushPlugin.m: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@

- (void)init:(CDVInvokedUrlCommand*)command;
{
    [self.commandDelegate runInBackground:^ {
        
    NSLog(@"Push Plugin register called");
    self.callbackId = command.callbackId;
    
@@ -110,6 +112,8 @@
    
    if (notificationMessage)			// if there is a pending startup notification
        [self notificationReceived];	// go ahead and process it

    }];
}

- (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {