Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications not correctly opened in quit state #3094

Open
steffenkleinle opened this issue Feb 15, 2025 · 0 comments
Open

Push notifications not correctly opened in quit state #3094

steffenkleinle opened this issue Feb 15, 2025 · 0 comments
Assignees
Labels
Bug Something isn't working Native Affects the native project prio:high ready

Comments

@steffenkleinle
Copy link
Member

Describe the Bug

At the moment, push notifications are not correctly handled if the app is in a quit state on android (and most likely on iOS, too). The app only opens on the last opened page. In theory, this might also be a development issue though.

Steps to Reproduce

  1. Force kill the app
  2. Send a push notification from the CMS
  3. Click the push notificaiton
  4. See the app open on the start screen/city dashboard.

Expected Behavior

Clicking the push notification opens the correct local news item.

Related Issues

Follow up for #3018 which fixed a similar issue on iOS (background app state).

Additional Information

Apparently all messages should now be handled with notifee (see rnfirebase docs):

Note: If you use @notifee/react-native, since v7.0.0, onNotificationOpenedApp and getInitialNotification will no longer trigger as notifee will handle the event.

Probably we need to implement the setBackgroundMessageHandler in the same/similar way to onMessage , see the notifee docs.

Please check if we can get rid of some of the current rnfirebase listeners (backgroundAppStatePushNotificationListener, quitAppStatePushNotificationListener).

@steffenkleinle steffenkleinle added the Bug Something isn't working label Feb 15, 2025
@steffenkleinle steffenkleinle added ready Native Affects the native project prio:high labels Feb 15, 2025
@steffenkleinle steffenkleinle moved this to Next Up in team-app Feb 15, 2025
@bahaaTuffaha bahaaTuffaha self-assigned this Feb 20, 2025
@bahaaTuffaha bahaaTuffaha moved this from Next Up to In Progress in team-app Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Native Affects the native project prio:high ready
Projects
Status: In Progress
Development

No branches or pull requests

2 participants