I am not receiving any callback from interfaces such as addOnSuccessListener
, addOnFailureListener
,addOnCompleteListener
.
Depe
Delete Project (App_Folder_Name)/app/ "build"
delete entire build folder and rebuild it it will work. If only your jason file is correct
If you have recently change your google-services.json
file then just delete build
folder from android project and re-build your project.
Your buildVariant
should be same as project in Firebase. Check buildTypes
and productFlavors.
To solve this, please change this line of code:
classpath 'com.google.gms:google-services:3.2.1'
to
classpath 'com.google.gms:google-services:4.0.1'
and
implementation 'com.google.firebase:firebase-firestore:16.0.0'
to
implementation 'com.google.firebase:firebase-firestore:17.0.2'
And also don't forget to add the following dependecy which is now mandatory:
implementation 'com.google.firebase:firebase-core:16.0.1'
Also if you need to use Firebase Messaging
then you should also add the following dependency:
implementation 'com.google.firebase:firebase-messaging:17.0.0'
More informations here.
I had the same problem.
Turned out a team member had accidentally deleted the Firebase project.
Sorry for late reply but you will get correct sender is from firebase.
Got to firebase-> Select your project->Project setting->Cloud Messaging->Sender ID
You will get your sender_id , copy that and use in your prroject it will solve your issue.