Skip to content

Commit c6020a0

Browse files
danielbraunFacebook Github Bot
authored andcommitted
Added logging to push registration failure.
Summary: It seems it's a common problem people trying to register for push notifications in their simulator, and not understanding why the "register" event never works. I've wasted a few hours myself on this issue. This commit simply logs any failures with push registration, preventing confusion. Closes #8046 Differential Revision: D3454922 Pulled By: javache fbshipit-source-id: a96896d97d97cfe1bd319e6490750838dfaad3cd
1 parent e08197b commit c6020a0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Libraries/PushNotificationIOS/PushNotificationIOS.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ const DEVICE_LOCAL_NOTIF_EVENT = 'localNotificationReceived';
7070
* {
7171
* [RCTPushNotificationManager didReceiveLocalNotification:notification];
7272
* }
73+
* - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
74+
* {
75+
* NSLog(@"%@", error);
76+
* }
7377
* ```
7478
*/
7579
class PushNotificationIOS {

0 commit comments

Comments
 (0)