-
Notifications
You must be signed in to change notification settings - Fork 444
Push messages do not work on Android #906
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
My project's Google Play Console is using a Google-managed signature, but I also added a Keystore fingerprint that I manage. So, I registered both the signature of my keystore and the signature provided by Google with Firebase. (SHA-1 and SHA-256 are registered 2 each and a total of 4 fingerprints are registered) And I created AAB to check if it is an issue due to app signing, but as a result of Google Play internal testing, AAB also did not receive a push message. |
Hi @jason-codes, I think this might be a duplicate of #883 6.16.x FCM notifications not received clicking PushNotification on Android. Could you check it to confirm? Thanks! |
Hi @DellaBitta, In my case, either the foreground or the background, the push message doesn't appear on Android. Even FirebaseMessaging.MessageReceived is unresponsive. I ran a local notification with Unity Mobile Notification to see if my app couldn't print notifications on Android. https://github.com/firebase/quickstart-unity/tree/master/messaging/testapp What is the difference? I plan to install and test the Facebook SDK, Google Sign-in, Google Mobile Ads, gRPC, and many other plugins that are being used in my project in the sample project next day to see if the third-party library is the problem. |
I figured out what was causing the problem. The previous Firebase 6.x.x version creates the Assets/Plugins/Android/Firebase folder, and the current Firebase 7.0.x version creates FirebaseApp.androidlib instead of that folder. When upgrading Firebase, the old folder was not deleted, and if I delete it manually, Android push message works fine. Thanks you. |
Hi @jasons-codes, Great, I'm glad to hear the news and thanks for circling back to us with the information. I'm going to close this issue for now. Thanks again! |
Uh oh!
There was an error while loading. Please reload this page.
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
Push messages do not work on Android.
Steps to reproduce:
https://firebase.google.com/docs/cloud-messaging/unity/client?hl=en
I added FCM to my project as described in that link.
However, while iOS works fantastically, I haven't received any push messages on Android.
The test environment is as follows.
The FCM version in use is 7.0.1.
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)
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
The text was updated successfully, but these errors were encountered: