I have been facing this error for days, I have read almost every question on this topic, but I haven't figured out the solution.
Please don't mark this as duplicate (I have already looked in the previous Questions).
I had a look at these similar questions (But no luck) :
and so many others, I tried out their solutions, such as
- Checking whether am using the legacy server or server key or sender Id and the google-services.json file of the same project, on my end it was all correct.
- Invalidating cache of android studio and restart.
- Cleaning the project and rebuilding it still it doesn't work.
I am using a python library called pyfcm to send notifications to the Android Application, but no luck, below is the function :
def sendMessages():
push_service = FCMNotification(api_key="AIzaSyxxxxxxxxx")
registration_id = "fd9JpOrrSbc:APA91bHOmsE99dtUXXXXXXXXXXXXXXXX"
message_title = "Cool Me"
message_body = "Hi john, your customized news for today is ready"
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
message_body=message_body)
Below is the output :
{'multicast_ids': [8943443862024247709], 'success': 0, 'failure': 1, 'canonical_ids': 0, 'results': [{'error': 'MismatchSenderId'}], 'topic_message_id': None}
This is issue started this week, but the previous one this task was working fine as expected.
I also read on the firebase error documentation error documentation