2016-10-18 4 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

관련 문제