Firebase push notification on tap to navigate specific screen when app in terminated not working in flutter android #16862
Unanswered
DeepakYiron
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please Suggest:-- I have implemented flutter push notification in android side, working fine in foreground and background and i am also able to tap notification and navigate to specific screen.But when app is terminated i am not able to get initial firebase message
FirebaseMessaging messaging = FirebaseMessaging.instance;
// Check if the app was launched from a notification
RemoteMessage? initialMessage = await messaging.getInitialMessage();
this is working when my payload is something like this
{
"message": {
"token": "device token",
"notification": {
"title": "test notification",
"body": "test body"
but not working when i used this payload
{
"message": {
"token": "device token",
"notification": {
"title": null,
"body": null
},
"data": {
"title": "test notification",
"body": "test body"
I have handled custom notification.(Only i stuck when app is terminated and tap on notification , on tap i need to navigate to specific screen)
{
"message": {
"token": "device token",
"notification": {
"title": "test notification",
"body": "test body"
Beta Was this translation helpful? Give feedback.
All reactions