-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[firebase_messaging]: Cannot Receive ANY Messages/Notifications on Android #12848
Comments
I basically took the android.xml in the firebase_messaging example in your github repo, and replaced with my namespace, and copy pasted the build.gradle for app level and android project level. These are my gradle.properties: |
Hi @itismejy - I was testing android messaging on device + emulator all day yesterday. It does work, please follow setup in example app, remove any if conditions that could block the setup of message handlers. Also send messages via this nodejs script to test. |
hi @russellwheatley, can confirm android messaging works in US, does not work in China. Trying lots of configurations and even though the cloud functions is sending through a proxy and the phone is using a proxy vpn, still not working. Looking for help thanks! |
None of our Chinese users can receive firebase messaging even though they have a vpn on |
Firebase does not work in China I'm afraid, according to this stack overflow issue it might work but maybe the devices don't have google play services. Either way, you're best opening an issue on stackoverflow for advice from fellow users on how to solve your issue 🙏 |
Is there an existing issue for this?
Which plugins are affected?
Messaging
Which platforms are affected?
Android
Description
Firebase Messaging works fine on iOS. Does not work on Android, tested on Samsung Galaxy S21 and Vivo. onMessage is not being called. Any help please, big blocker for me, spent 3 working days already!
Tested my Firebase Functions no problems, the notification token is valid and my NotificationSettings is authorized on my samsung phone. Losing hope and no ideas. Everything works perfectly on iOS so must be a problem with something in my android folder
Struggled for two days with own Android build.gradle and manifest.xml, decided to try with the ones in the example and still doesn't work!!
In android/build.gradle:
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'com.google.gms:google-services:4.4.0'
Reproducing the issue
Firebase Core version
2.31.1
Flutter Version
3.22.1
Relevant Log Output
Flutter dependencies
Dart SDK 3.4.1
Flutter SDK 3.22.1
hang 4.0.9+25
dependencies:
dev dependencies:
transitive dependencies:
Additional context and comments
please help :( i will check frequently here to make sure i can get some help!
The text was updated successfully, but these errors were encountered: