Commit 1c39ccd9 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #45 from benoist/register-remote-notifications

added registerForRemoteNotifications fixes #44
parents 16c1791f cf4919ce
......@@ -100,6 +100,7 @@ RCT_EXPORT_METHOD(requestPermissions)
UIUserNotificationSettings *notificationSettings =
[UIUserNotificationSettings settingsForTypes:(NSUInteger)types categories:nil];
[app registerUserNotificationSettings:notificationSettings];
[app registerForRemoteNotifications];
} else {
[app registerForRemoteNotificationTypes:(NSUInteger)types];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment