-
Notifications
You must be signed in to change notification settings - Fork 441
MessageReceived event doesn't fire when app is in background #877
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
Comments
Hi @ErnSur, There is some more discussion on this in this post, Hope this helps. |
Hi @vimanyu,
|
Hi @ErnSur,
6.16.1/6.15.1 foreground, I can see all the information from the notification. Are you observing something similar on 6.15.1? I will get in touch with the team to figure out what the expected behavior is here. |
I experienced the same behavior, from what I can remember the title and body was missing but not the |
Hi @ErnSur, If you are curious, the change that caused the difference in behavior from 6.15.1 to 6.16.+.
If you absolutely need the latest and dont mind building from our source, let me know and I can provide you a workaround before our next release. |
I'd like some info on that possible workaround, because our app relies heavily on notifications when app is in the background. |
Hi @npicouet, |
I experience the same problem on Unity 2020.1.17f1. Tried all Firebase Cloud Messaging starting from 6.15.x ending with 7.0.2 - everywhere the same result.
What means it follows the requirement in documentation, because it has @vimanyu any way to make it work finally? |
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
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
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. |
@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! |
I've just hit this issue myself. |
…roduced in Android O. We moved from using `IntentService` to `JobIntentService` in preparation for this change but the call to schedule jobs remained the same which meant that our custom IntentService was not doing any work at all. Using `JobIntentService.enqueueWork`, when running on Android O or later, the work will be dispatched as a job via JobScheduler.enqueue. When running on older versions of the platform, it will use Context.startService. https://developer.android.com/reference/androidx/core/app/JobIntentService Fixes firebase/quickstart-unity#877 firebase/quickstart-unity#883 PiperOrigin-RevId: 350176964
@npicouet, we just released Unity 7.1.0 which should have a fix for the original issue in this ticket. |
It didn't work for me which is somewhat disappointing.
If my app is backgrounded I still need to send an extra data message along
with the notification message in order for the app to pick it up when I
resume it.
Rob,
…On Wed, 17 Feb 2021 at 00:55, Vimanyu Jain ***@***.***> wrote:
@npicouet <https://github.com/npicouet>, we just released Unity 7.1.0
which should have a fix for the original issue in this ticket.
If you have some time, could you verify if things are working as expected.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#877 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEINFMCLJK3G776UOEROGMDS7MHZZANCNFSM4UDNN5KA>
.
|
Can confirm @RobBrooks words: 7.1.0 "fix"doesn't work. |
Hi @RobBrooks and @novavision, I am sorry to hear that but just wanted to clarify some thing. The original issue filed by @ErnSur was a change in behavior of a callback function introduced in 6.16.x (it worked in 6.15.2). "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" It might be a different problem from what you are running into, please correct me if I am wrong but 6.15.x does not work for you at all. If that is the case, we should create a new issue and we will look into that specifically. Are you able to reproduce the problem in any of the quickstart examples? That will speed up the debugging too. |
1 similar comment
Hi @RobBrooks and @novavision, I am sorry to hear that but just wanted to clarify some thing. The original issue filed by @ErnSur was a change in behavior of a callback function introduced in 6.16.x (it worked in 6.15.2). "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" It might be a different problem from what you are running into, please correct me if I am wrong but 6.15.x does not work for you at all. If that is the case, we should create a new issue and we will look into that specifically. Are you able to reproduce the problem in any of the quickstart examples? That will speed up the debugging too. |
Hi everyone, I tested the following workaround on my end and now the functionality seems to match what happens in 6.15.1. It will be really helpful if we can get a confirmation this also works on your end. Tested on Messaging unity quickstart in Unity 2018.4.29f1, Firebase Unity SDK 7.1.0, Android 8.0.
AND
Let me know if there are any questions. |
[REQUIRED] Please fill in the following fields:
[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:
FirebaseMessaging.MessageReceived
do not fire.reproducible with the Firebase Unity quickstarts, 100% of the time.
The text was updated successfully, but these errors were encountered: