react-native-onesignal icon indicating copy to clipboard operation
react-native-onesignal copied to clipboard

No known class method for selector 'didReceiveRemoteNotification:'

Open suupham2506 opened this issue 8 years ago • 3 comments

screen shot 2018-03-16 at 10 46 40 am

suupham2506 avatar Mar 16 '18 03:03 suupham2506

same here is there any other solution?

thegrucoder avatar Mar 17 '18 00:03 thegrucoder

@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];
}

jkasten2 avatar Mar 17 '18 00:03 jkasten2

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

Nightsd01 avatar Mar 19 '18 22:03 Nightsd01