{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/5162","labels_url":"https://api.github.com/repos/facebook/react-native/issues/5162/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/5162/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/5162/events","html_url":"https://github.com/facebook/react-native/issues/5162","id":125262012,"number":5162,"title":"PushNotificationIOS Documentation Has Step that Leads to Error","user":{"login":"mikeborozdin","id":1240215,"avatar_url":"https://avatars.githubusercontent.com/u/1240215?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeborozdin","html_url":"https://github.com/mikeborozdin","followers_url":"https://api.github.com/users/mikeborozdin/followers","following_url":"https://api.github.com/users/mikeborozdin/following{/other_user}","gists_url":"https://api.github.com/users/mikeborozdin/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeborozdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeborozdin/subscriptions","organizations_url":"https://api.github.com/users/mikeborozdin/orgs","repos_url":"https://api.github.com/users/mikeborozdin/repos","events_url":"https://api.github.com/users/mikeborozdin/events{/privacy}","received_events_url":"https://api.github.com/users/mikeborozdin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Good%20First%20Task","name":"Good First Task","color":"5319e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Help%20Wanted","name":"Help Wanted","color":"5319e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/iOS","name":"iOS","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-06T20:59:33Z","updated_at":"2016-02-02T13:06:34Z","closed_at":null,"body":"The [documentation of PushNotificationIOS]( https://facebook.github.io/react-native/docs/pushnotificationios.html#content) says one needs to add\r\n\r\n```\r\n   // Required to register for notifications\r\n   - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings\r\n   {\r\n    [RCTPushNotificationManager didRegisterUserNotificationSettings:notificationSettings];\r\n   }\r\n   // Required for the register event.\r\n   - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken\r\n   {\r\n    [RCTPushNotificationManager didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];\r\n   }\r\n   // Required for the notification event.\r\n   - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification\r\n   {\r\n    [RCTPushNotificationManager didReceiveRemoteNotification:notification];\r\n   }\r\n```\r\n\r\nto `AppDelegate.m`\r\n\r\nHowever, the first method, namely\r\n\r\n```\r\n   - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings\r\n   {\r\n    [RCTPushNotificationManager didRegisterUserNotificationSettings:notificationSettings];\r\n   }\r\n```\r\n\r\nresults in an compilation error that says\r\n\r\n>No class method for selector 'didRegisterUserNotificationSettings:notificationSettings'"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/178567198","html_url":"https://github.com/facebook/react-native/issues/5162#issuecomment-178567198","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5162","id":178567198,"user":{"login":"yamill","id":755943,"avatar_url":"https://avatars.githubusercontent.com/u/755943?v=3","gravatar_id":"","url":"https://api.github.com/users/yamill","html_url":"https://github.com/yamill","followers_url":"https://api.github.com/users/yamill/followers","following_url":"https://api.github.com/users/yamill/following{/other_user}","gists_url":"https://api.github.com/users/yamill/gists{/gist_id}","starred_url":"https://api.github.com/users/yamill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamill/subscriptions","organizations_url":"https://api.github.com/users/yamill/orgs","repos_url":"https://api.github.com/users/yamill/repos","events_url":"https://api.github.com/users/yamill/events{/privacy}","received_events_url":"https://api.github.com/users/yamill/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T13:06:33Z","updated_at":"2016-02-02T13:06:33Z","body":"I have a fix for this. I'll be a submitting a PR sometime soon. "}}