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

No Notification receive in background for IOS #3819

Closed
mobiledev2014 opened this issue Oct 9, 2020 · 5 comments
Closed

No Notification receive in background for IOS #3819

mobiledev2014 opened this issue Oct 9, 2020 · 5 comments
Assignees
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested.

Comments

@mobiledev2014
Copy link

I am using flutter 1.22 stable, Xcode 12, Firebase 7.0.3 and IOS 14 for device but the notification only works in foreground, Please help me find the solution

@mobiledev2014 mobiledev2014 changed the title No notificaiton in Background for IOS No notification in Background for IOS Oct 9, 2020
@mobiledev2014 mobiledev2014 changed the title No notification in Background for IOS No Notification receive in background for IOS Oct 9, 2020
@dackers86 dackers86 self-assigned this Oct 9, 2020
@dackers86
Copy link
Member

Hi @mobiledev2014.

Could you provide an example of the code you are using so we can attempt to replicate the issue.

Thanks

@darshankawar darshankawar added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Oct 9, 2020
@pengw00
Copy link

pengw00 commented Oct 11, 2020

I think you might miss add click_action attribute when sending message in backend

@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Oct 20, 2020
@google-oss-bot
Copy link

Hey @mobiledev2014. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@campioncino
Copy link

I have the same (old) issue.

There's no way to get the firebase message in background for iOS.

The messages are correct and they arrive when the app is in foreground

That's the message:

"to": "dAMWn_x6TACR6clI_Oe62s:APA91bFtfnR9VrXl0J_HNB8WAdLJdOp8p8FZsqzDLqSwqsOS8RlepqTVJp2zzETJj78AAwVSfz4PYmjqoPpnpUWL72DpdWfkyeXkaWmyPjqYfgF1_7qWB6X5w4MIW7_kKs8ESuFvGAFg", "body": "this is a body", "title": "this is a title", "priority": "high", "data": { "click_action": "FLUTTER_NOTIFICATION_CLICK", "id": "1", "status": "done" }

When the app is in background, there's no way to get the message, but when you put the app in foreground you get the message back.

Have you ever solved this problem?
Few month ago i followed this solution #2016

Many updates, but same problems ?

@google-oss-bot google-oss-bot removed the Stale Issue with no recent activity label Oct 20, 2020
@dackers86
Copy link
Member

Hi @campioncino

You are correct #2016 is related, please follow this for any updates.

Fyi. It's my understanding this will be apart of the messaging rework, please see https://twitter.com/elliothesp/status/1314479419667476480

@firebase firebase locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested.
Projects
None yet
Development

No branches or pull requests

6 participants