Skip to content

6.16.x FCM notifications not received clicking PushNotification on Android #883

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

Closed
novavision opened this issue Dec 2, 2020 · 7 comments
Assignees
Labels
api: messaging needs-attention Need Googler's attention

Comments

@novavision
Copy link

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2019.3.15f1
  • Firebase Unity SDK version: 6.16.0 or 6.16.1
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: FCM
  • Other Firebase Components in use: Crashlytics
  • Additional SDKs you are using: none
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

New 6.16.x Cloud Messaging SDK doesn't work properly redirecting user to the app clicking the push notification - opening app to foreground MessageReceived not called. It works fine on iOS. Also It works well on 6.15.2 for both platforms. Had to downgrade my main project to 6.15.2, spending tons of time figuring out the issue reason

Steps to reproduce:

Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc)

It's 100% reproducible on Android build using quickstarts project

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

  1. Use a quickstart cloud messaging project
  2. install Firebase Cloud Messaging using UPM
  3. create a Android build
  4. after app start make sure FCM received
  5. move app to background and send new FCM
  6. click PushNotification - after app is opened you will see message is not received

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

@novavision novavision added the new New issue. label Dec 2, 2020
@npicouet
Copy link

npicouet commented Dec 3, 2020

I'm also having this issue. 6.16.1.

Payload has notification and data.

On Android, the OnMessageReceived callback and states:
Foreground: Received
Background: Nothing Received
Killed: Received

@vimanyu vimanyu self-assigned this Dec 10, 2020
@DellaBitta
Copy link
Contributor

Hi @novavision and @npicouet,

we're reaching out to the Android team about this issue. We'll update this issue as soon as we can.

Thanks for the report!

@DellaBitta DellaBitta added needs-attention Need Googler's attention and removed new New issue. labels Dec 10, 2020
@vimanyu
Copy link
Contributor

vimanyu commented Dec 12, 2020

Hi @novavision and @npicouet,
I think this is related to,
#877

One thing to clarify is that when the app is in background, only the data payload can be queried on opening the app. Notification data will still be absent. But, a message with data payload was not making it to the queue in 6.16.+ and will be fixed in next release (more details in the other issue).

@patm1987 patm1987 added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Dec 17, 2020
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Dec 18, 2020
@google-oss-bot
Copy link

Hey @novavision. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 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!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@novavision if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@novavision
Copy link
Author

novavision commented Jan 11, 2021

What information do you need more? It's 100% reproducable.
This issue is still actual #877 and problem wasn't resolved.

@vimanyu vimanyu added needs-attention Need Googler's attention and removed needs-info Need information for the developer closed-by-bot stale Don't have recent activity labels Jan 11, 2021
@vimanyu
Copy link
Contributor

vimanyu commented Jan 11, 2021

Sorry, that was an automated message from the bot. Would you like us to reopen the ticket? I am hoping we could keep the master ticket open until a new release with the fix goes out, and these tickets could reference that master ticket. If it makes it easier for your personal tracking, please feel free to reopen this ticket and we will update it as soon as the new release goes out.

@firebase firebase locked and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: messaging needs-attention Need Googler's attention
Projects
None yet
Development

No branches or pull requests

7 participants
@patm1987 @vimanyu @novavision @npicouet @DellaBitta @google-oss-bot and others