Skip to content

Commit 5c41865

Browse files
jacob-israel-turnerfacebook-github-bot-7
authored andcommitted
Remove duplicate register call
Summary:Hello! As described in #3288, the `PushNotificationsIOS` `register` callback fires twice. See that issue for discussion. There wasn't any feedback on a proposed PR, so this is the first effort. This change does make the register callback act as expected on my device. I can make any changes necessary. Thanks! Closes #6111 Differential Revision: D2970806 Pulled By: nicklockwood fb-gh-sync-id: a8d0b53210f85cc24b4befdb0e90af46512fa4fb shipit-source-id: a8d0b53210f85cc24b4befdb0e90af46512fa4fb
1 parent ec173b1 commit 5c41865

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Libraries/PushNotificationIOS/RCTPushNotificationManager.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ - (void)handleRemoteNotificationsRegistered:(NSNotification *)notification
182182
UIUserNotificationSettings *notificationSettings =
183183
[UIUserNotificationSettings settingsForTypes:(NSUInteger)types categories:nil];
184184
[app registerUserNotificationSettings:notificationSettings];
185-
[app registerForRemoteNotifications];
186185
} else {
187186
[app registerForRemoteNotificationTypes:(NSUInteger)types];
188187
}

0 commit comments

Comments
 (0)