Background and killed push notification response handling.

Please provide the following:

  1. SDK Version: 42
  2. Platforms(Android/iOS/web/all): Android and iOS
  3. 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 => {

Iโ€™m not sure if it is an issue with running them through Expo Go. I am going to investigate running them standalone.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.