quickstart-unity: MessageReceived event doesn't fire when app is in background

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2018.4.29f1
  • Firebase Unity SDK version: 6.16.x
  • Source you installed the SDK: Unity Package Manager
  • Problematic Firebase Component: CloudMessaging
  • Other Firebase Components in use: RemoteConfig, Analytics
  • Additional SDKs you are using: GoogleMobileAds
  • Platform you are using the Unity editor on: Mac
  • Platform you are targeting: Android
  • Scripting Runtime: Mono

[REQUIRED] Please describe the issue here:

FirebaseMessaging.MessageReceived does not fire when I click on notification and the app is opened from the background. I experience the issue in SDK versions of 6.16.0 and 6.16.1, I see no problem in version 6.15.2.

Steps to reproduce:

  1. Open app.
  2. Send notification.
  3. Notification is received. OK.
  4. Hide app (so it stays in the background)
  5. Send notification.
  6. Click on the notification to open the app.
  7. Callbacks registered to FirebaseMessaging.MessageReceived do not fire.

reproducible with the Firebase Unity quickstarts, 100% of the time.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@npicouet, this very severe bug was reported 2 months ago and 6 weeks ago you found the problem. We experience it, too. When do you think this fix will be included in an update for Unity? It’s really needed!

Are you seeing the problem in 6.15.1?

As I said I tested all SDKs starting from 6.15.0. So yes, it exists. Now I am on 7.0.2, and it still here

The fix is ready in our internal systems and will roll out with the next release.

Did I correctly understand, that this issue existed for almost 1 year (or when that 6.15.0 was released) and only next Unity SDK will include the fix?

To be honest, I can’t figure out how such important bugs are

  1. were generally admitted
  2. were not resolved in a timely manner

In my opinion, this functionality is one of the most important - activation push notification with data transfer. Looks like that was important only to me and the creator of this ticket.