-
Notifications
You must be signed in to change notification settings - Fork 682
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
Could not invoke RNFIRMessaging.SubscribeToTopic #976
Comments
I have the same issue |
looks like this line is broken, saying the method not existing. what version of firebase are you using? |
I am using |
I have the same issues, is it a version problem about firebase ? |
I have the same issues "react-native-fcm": "^16.0.0",
"react-native": "0.49.5",
"react-native-firebase": "^4.1.0", implementation ('com.google.android.gms:play-services-gcm:15.0.1') {
force = true;
}
implementation 'com.google.android.gms:play-services-auth:15.0.1' // should be at least 9.0.0
implementation(project(':react-native-firebase')) {
transitive = false
}
implementation "com.google.android.gms:play-services-base:15.0.1"
// Firebase dependencies
implementation "com.google.firebase:firebase-firestore:17.0.2"
implementation "com.google.firebase:firebase-storage:15.0.2"
implementation "com.google.firebase:firebase-core:16.0.1"
implementation "com.google.firebase:firebase-auth:16.0.2"
implementation "com.google.firebase:firebase-messaging:17.1.0" |
downgrade firebase-messaging to 15.0.2 seems to be a temporary fix for me now:
|
hey @KennethLoOctopuspos , I tried to temporary fix the issue with changing firebase-messaging version to 15.0.2. It doesn't work for me. |
Hi @ZahiC I'm using react-native-fcm 16.0.0 with these dependency settings: compile "com.google.firebase:firebase-messaging:15.0.2" |
Hi, any fix for this? |
@dhcmega
|
You just have to get the right versions of the dependencies. I experienced some struggle but finally manged to get everything working using the below versions: Hope it helps! |
@tiendn, I will try to solve it, if not, I will consider moving. Thanks!
Thanks! |
@dhcmega Why are you still including gcm? It's deprecated and makes no sense in using it. Instead you should be using firebase-messaging:17.3.4. Apart from that, answering your question, I'm using one more dependency with this project, i.e, com.google.android.gms:play-services-auth:16.0.1. |
@coderwassananmol, I have deleted gcm, thanks. |
It seems that I'm having a version conflict. |
App.js
"react-native": "^0.55.4",
"react-native-fcm": "^10.0.3",
Android Emulator 6
running in foreground
thanks in advance
The text was updated successfully, but these errors were encountered: