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

"Handle Push Notifications" example doesn't seem to work on Android? #809

Open
sparkertime opened this issue Jul 26, 2023 · 2 comments
Open

Comments

@sparkertime
Copy link

Which package manager are you using? (Yarn is recommended)

npm

Summary

We'd like to navigate to a specific tab upon receiving a push notification. This works in iOS, but in Android nothing happens. We have started with the tab navigation template for Expo 49 and added the example code from https://docs.expo.dev/versions/latest/sdk/notifications/#handle-push-notifications-with-navigation

Oddly enough, if we change initialRouteName in unstable_settings to a bogus value, then that code DOES work but generates warnings on Android.

My Expo-pertise is insufficient to know if this is an issue with the example code, an issue with the tab starter template, or something else.

Minimal reproducible example

https://github.com/sparkertime/android_push_notifications_tabs

This repo was created by...

  1. Run npx create-expo-app@latest --template tabs@49
  2. Add code from https://docs.expo.dev/versions/latest/sdk/notifications/#handle-push-notifications-with-navigation

To reproduce with that repo,

  1. Add a valid projectId
  2. Test on Android device via Expo Go
  3. Use the Expo web push notification tool to send yourself a push notification
@janusqa
Copy link

janusqa commented Aug 16, 2023

I'm unable to get push notifications working on Android with expo-router.

@ctrlx-altf4
Copy link

Having the same issue. Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants