firebase/quickstart-cpp

MismatchSenderId no matter what I try

johanlantz opened this issue · 1 comments

Hi there

Thanks a lot for the quickstart-cpp project. I am using the 2.1.0 version and I managed to include it in my cross platform project in no time at all. I am currently testing it for iOS but no matter what I do, I end up with this type of response:
{"multicast_id":6116168930780731961,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"MismatchSenderId"}]}

Sending from the Firebase console to the registration_id of the device also does not work. I have debugged what I could and it looks correct. The content of the AppOptions is assigned from the plist file and it looks correct. Firebase initializes ok and I get the registration token in the onTokenReceived callback.

I have tried various times to delete and reinstall the app and I get a new registration token which I test but it simply never works, neither sending a notification from the console or using curl.

I have spend almost two days, trying anything I could find on SO and I am all out of idea so any suggestion is highly appreciated. It does not seems that complex but still I can not get pass the MismatchSenderId and I do not know how to troubleshoot further.

I found the problem finally. The App layer of the iOS app also used Firebase for Analytics and they had another plist file so the same app tried to use two different configurations. One from objective C for Analytics and one in the native code for messaging and this did not go well.