Open RohovDmytro opened 3 days ago
Hello and thanks for reporting, I'm afraid the problem in this case is that the application starts from the killed state. We don't yet have good support for when the app is killed but it's something we're looking into.
Please note that the issue tracker requires "Minimal reproducible example" to be present. In simple cases we can do without it but with more complex issues like this one, it's hard to act on the issue if we don't have a reliable repro. Please try to add repros when you can, it saves us time and allows to resolve issues faster. Thank you 🙂
Minimal reproducible example
https://github.com/expo/expo/issues/32006
What platform(s) does this occur on?
Android
Where did you reproduce the issue?
in a development build
Summary
The
getLastNotificationResponseAsync
returns null ofexpo-dev-client
in a DEV mode.Kill the app.
Sending a test Data type Message:
@react-native-firebase/messaging
.This way the notification gets displayed with a proper action, but pressing an action is not handled and
getLastNotificationResponseAsync
returnsnull
. The release mode of the dev build works properly.In other words, opening an app from a notifications make
getLastNotificationResponseAsync
return null. The docs:https://docs.expo.dev/versions/latest/sdk/notifications/
Environment
Expo Doctor Diagnostics