React-native-onesignal: No known class method for selector 'didReceiveRemoteNotification:'

Created on 16 Mar 2018  ·  3Comments  ·  Source: OneSignal/react-native-onesignal

Most helpful comment

@suupham2506 @zootopia106 This was removed from the setup instructions a while ago as it is now handled automatic in the SDK. You can safely remove the 4 lines (42 to 45) in this case.

// Required for the notification event.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification {
  [RCTOneSignal didReceiveRemoteNotification:notification];
}

All 3 comments

same here
is there any other solution?

@suupham2506 @zootopia106 This was removed from the setup instructions a while ago as it is now handled automatic in the SDK. You can safely remove the 4 lines (42 to 45) in this case.

// Required for the notification event.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification {
  [RCTOneSignal didReceiveRemoteNotification:notification];
}

@suupham2506 @zootopia106 This has also been updated in the demo project as well.

Was this page helpful?
0 / 5 - 0 ratings