react-native-push-notification / ios

React Native Push Notification API for iOS.
MIT License
750 stars 287 forks source link

iOS Notification Actions Not Triggering from Apple Watch #265

Open ninjz opened 3 years ago

ninjz commented 3 years ago

I've been playing around with multiple libraries for push notifications:

wix/react-native-notifications notifee/react-native-notifee

and this one right here. I've finally gotten notification actions to work properly on the phone regardless of the app being killed, or backgrounded.

I've just started testing this on the Watch and I am unable to get the action to be handled by the phone. In this library it's unreliable, and sometimes I get the response, sometimes I don't – it seems the responses stop coming after 30 minutes of being in the background.. probably suspended?

And with notifee/react-native-notifee the phone does not receive the notification action response when the device is locked.

It would be great to know if anyone has this working properly on their end as I don't see how I can release notification actions without them working properly on the watch. I wouldn't be surprised if it wasn't a particular notification libraries fault as I was initially unable to get notification actions working at all due to another dependency: react-native-splash-screen

wong2 commented 2 years ago

Can you receive the notification?