Please provide the following:
- SDK Version: 42
- Platforms(Android/iOS/web/all): Android and iOS
- Add the appropriate โTagโ based on what Expo library you have a question on.
- I am running my app in Expo Go on both Android and iOS.
- I am handling the response in the background
Notifications.setNotificationCategoryAsync("YESNO", [
{ identifier: "YES", buttonTitle: "Yes ๐", options: { opensAppToForeground: false } },
{ identifier: "NO", buttonTitle: "No ๐", options: { opensAppToForeground: false } },
]);
- Push notification response handling isnโt triggered on either platform when the app is killed.
- Push notification response handling isnโt triggered on iOS when the app is backgrounded.
The following is in a useEffect
inside my App
component.
responseListener.current = Notifications.addNotificationResponseReceivedListener(response => {
console.log(response);
});
Iโm not sure if it is an issue with running them through Expo Go. I am going to investigate running them standalone.