I have an app on iOS and can’t get the device token from the notifications.
- I’m running on device
- I don’t see any relevant message in the logs
- I see the prompt to ask for notifications
Here is the relevant code:
useEffect(() => {
Notifications.registerRemoteNotifications();
Notifications.events().registerRemoteNotificationsRegistered(event => {
console.log('DEVICE TOKEN');
console.log(event.deviceToken);
alert('DEVICE TOKEN');
alert(event.deviceToken);
});
});