-
Notifications
You must be signed in to change notification settings - Fork 295
Open
Description
React Native Version: 0.73.6
Reproduction Steps:
- Background App
- Send push notification
- Tap push notification
Using the following code, "entered" is never logged.
const onRemoteNotification = (notification) => {
console.log('entered')
// Use the appropriate result based on what you needed to do for this notification
const result = PushNotificationIOS.FetchResult.NoData;
notification.finish(result);
};
useEffect(() => {
const type = 'notification';
PushNotificationIOS.addEventListener(type, onRemoteNotification);
return () => {
PushNotificationIOS.removeEventListener(type);
};
});
Notes:
- Remote notification does show up on device; so I don't think it's a permission issue
- Tried with both type = "notification" and "localNotification"
relm923, kevinw0123, go-cristian and RLSWE
Metadata
Metadata
Assignees
Labels
No labels