-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
I'm trying to get push notifications working on my device:
Pulling this commit on React 0.5.0.
Adding a PushNotificationIOS.requestPermissions()
in my render pops open the permissions box, but when I add:
PushNotificationIOS.addEventListener('register', function(data) {
console.log(data);
});
I get nothing logged. I've tried in the simulator and on an actual device but once I click the allow button, nothing. I've tried using this component too.
I also tried adding the following code to my AppDelegate.m
from this thread:
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
[RCTPushNotificationManager application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
}
Any ideas?
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.