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

Notification is not coming when application is in background or killed in android. #625

Open
rakeshbaral92 opened this issue Nov 11, 2019 · 4 comments

Comments

@rakeshbaral92
Copy link

Unable to get the notification when app is in background or killed.

@eshope-repo
Copy link

I have the same problem, any idea ?

@rakeshbaral92
Copy link
Author

I have the same problem, any idea ?

Send your notification and data as per the desired format mentioned in document. Check if have missed any data while sending push notification.

{
"notification":{
"title":"Notification title",
"body":"Notification body",
"sound":"default",
"click_action":"FCM_PLUGIN_ACTIVITY",
"icon":"fcm_push_icon"
},
"data":{
"param1":"value1",
"param2":"value2"
},
"to":"/topics/topicExample",
"priority":"high",
"restricted_package_name":""
}

Use all the above code.

@eshope-repo
Copy link

Thank you, actually my problem was only when the app was killed. I found an article about several mobile concerned by this problem (Huawei & Xiaomi) which doesn't receive any notification until you don't whitelist you app in the battery manager ... strange but soled my issue

@rakeshbaral92
Copy link
Author

rakeshbaral92 commented Nov 20, 2019 via email

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

2 participants