Loading src/ios/PushPlugin.m +8 −0 Original line number Original line Diff line number Diff line Loading @@ -117,6 +117,10 @@ } } - (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { - (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { if (self.callbackId == nil) { NSLog(@"Unexpected call to didRegisterForRemoteNotificationsWithDeviceToken, ignoring: %@", deviceToken); return; } NSLog(@"Push Plugin register success: %@", deviceToken); NSLog(@"Push Plugin register success: %@", deviceToken); NSMutableDictionary *results = [NSMutableDictionary dictionary]; NSMutableDictionary *results = [NSMutableDictionary dictionary]; Loading Loading @@ -180,6 +184,10 @@ - (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error - (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { { if (self.callbackId == nil) { NSLog(@"Unexpected call to didFailToRegisterForRemoteNotificationsWithError, ignoring: %@", error); return; } NSLog(@"Push Plugin register failed"); NSLog(@"Push Plugin register failed"); [self failWithMessage:@"" withError:error]; [self failWithMessage:@"" withError:error]; } } Loading Loading
src/ios/PushPlugin.m +8 −0 Original line number Original line Diff line number Diff line Loading @@ -117,6 +117,10 @@ } } - (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { - (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { if (self.callbackId == nil) { NSLog(@"Unexpected call to didRegisterForRemoteNotificationsWithDeviceToken, ignoring: %@", deviceToken); return; } NSLog(@"Push Plugin register success: %@", deviceToken); NSLog(@"Push Plugin register success: %@", deviceToken); NSMutableDictionary *results = [NSMutableDictionary dictionary]; NSMutableDictionary *results = [NSMutableDictionary dictionary]; Loading Loading @@ -180,6 +184,10 @@ - (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error - (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { { if (self.callbackId == nil) { NSLog(@"Unexpected call to didFailToRegisterForRemoteNotificationsWithError, ignoring: %@", error); return; } NSLog(@"Push Plugin register failed"); NSLog(@"Push Plugin register failed"); [self failWithMessage:@"" withError:error]; [self failWithMessage:@"" withError:error]; } } Loading