Firebase FCM MismatchSenderID

0

I had an application on Phonegap Cli 6.5 and the plugin link with version 1.8 that worked correctly.

p>

Due to third parties I had to update Phonegap CLi 8.0 and updated the plugin with version 2.2.3, and now it has stopped working.

I'm sending via ajax (as before) the notifications to the devices and I'm getting an error "MismatchSenderId" and I do not know why.

I have modified the config.xml with the following changes: leaving the label with <plugin name="phonegap-plugin-push" spec="^2.2.3" /> and removing the sender_id that I think is no longer necessary (I tried to put it and it does not work either) I have added the <resource-file src="google-services.json" target="app/google-services.json" /> and I have added it to the root folder of the project (at the same level as the www)

In the ajax I am sending the authorization with the key in the header (same as before). The key that I am using is what is called server key (server key in Spanish), I am not using the legacy (inherited), which appears in the tab "messaging in the cloud" of the configuration of the firebase project. I've also tried these (the legacy) and it does not work either.

And finally in the init of the application I am sending the senderid that puts in that same tab, the numeric 13xxxxxxxx15

Do you know where the error may be or why does it come out? Do I need some step in addition to creating the google-services and the GoogleService-Info?

a greeting

    
asked by Nilan 27.06.2018 в 12:27
source

0 answers