2016-10-18 17 views

答えて

0
// Required for the register event. 
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken 
{ 
[RCTPushNotificationManager application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; 
} 


// Required for the notification event. 
    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification 
    { 
    [RCTPushNotificationManager application:application didReceiveRemoteNotification:notification]; 
    } 
// Required to register for notifications 
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings { [RCTPushNotificationManager didRegisterUserNotificationSettings:notificationSettings]; } 
// Required for the register event. 
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { [RCTPushNotificationManager didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; } 

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

リファレンスこのリンクHow to Setup Push Notifications with React Native

Setup Push Notifications with React Native tutorial

+0

@sandy:しかし、あなたはプッシュ通知の実装のために主に不可欠である一部言及していません。 – BK19

関連する問題