{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/3224","labels_url":"https://api.github.com/repos/facebook/react-native/issues/3224/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/3224/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/3224/events","html_url":"https://github.com/facebook/react-native/issues/3224","id":109681979,"number":3224,"title":"The document of PushNotificationIOS enhancement","user":{"login":"oney","id":4091190,"avatar_url":"https://avatars.githubusercontent.com/u/4091190?v=3","gravatar_id":"","url":"https://api.github.com/users/oney","html_url":"https://github.com/oney","followers_url":"https://api.github.com/users/oney/followers","following_url":"https://api.github.com/users/oney/following{/other_user}","gists_url":"https://api.github.com/users/oney/gists{/gist_id}","starred_url":"https://api.github.com/users/oney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oney/subscriptions","organizations_url":"https://api.github.com/users/oney/orgs","repos_url":"https://api.github.com/users/oney/repos","events_url":"https://api.github.com/users/oney/events{/privacy}","received_events_url":"https://api.github.com/users/oney/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-04T13:47:30Z","updated_at":"2015-10-04T13:47:30Z","closed_at":null,"body":"If I miss anything, please correct me.\r\nI try to use PushNotificationIOS, and I face many problems. Now, I resolve these problems.\r\n\r\n1. I have to add `RCTPushNotification.xcodeproj` to Libraries and add `libRCTPushNotification.a` to `Link Binary with Libraries`. Otherwise, I will get error `RCTPushNotificationManager is undefined` in `PushNotificationIOS.js`\r\n\r\n2. I have to add these code to \r\n```objective-c\r\n#import \"RCTPushNotificationManager.h\"\r\n...\r\n- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {\r\n  [RCTPushNotificationManager application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];\r\n}\r\n- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings {\r\n  [RCTPushNotificationManager application:application didRegisterUserNotificationSettings:notificationSettings];\r\n}\r\n- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {\r\n  [RCTPushNotificationManager application:application didReceiveRemoteNotification:userInfo];\r\n}\r\n```\r\nOtherwise, this listener will be never called.\r\n```javascript\r\nPushNotificationIOS.addEventListener('register', function(token){\r\n});\r\n```\r\nHowever, these things don't mentioned in document. Can you add it to document? It will be helpful. Or, it is in the document, and I miss it?"}}