Page 1 of 2

Mismatch Sender Id when send Android Push Notifications

Posted: Wed Jun 03, 2015 9:07 am
by Hawk

Hi,

I just started setting up Push notifications for Android, following this tutorial (https://devcenter.appery.io/tutorials...) and this question (https://getsatisfaction.com/apperyio/...)

I've installed the test App on my device, and I can see the alert is displaying the deviceID. At the backend, the deviceID is stored in Devices collection:

Image

I tried to send the notification. However, nothing is received, and in the notifications history, I can see there is an error codeDescription: mismatch Sender ID count 1/code.

Image

As the sender Id, is project number in google console :
Image

is the same as the one I've used in Push settings:
Image

And the API Key is the same from google console.

What could be mismatched here ?

Thanks,


Mismatch Sender Id when send Android Push Notifications

Posted: Wed Jun 03, 2015 10:50 am
by Evgene Karachevtsev

Hello Hawk,

I just tested this tutorial and it works correctly. Could you please check that there isn't any extra spaces in Sender ID and API Key? Also please try to recreate them just in a case.


Mismatch Sender Id when send Android Push Notifications

Posted: Wed Jun 03, 2015 1:01 pm
by Hawk

Hi Evgene,
I've checked. There is no spaces with th sender Id. Also, this is the second project I create on google cosole, and get the same error.

Please help


Mismatch Sender Id when send Android Push Notifications

Posted: Fri Jun 05, 2015 1:58 am
by Hawk

Hello,

Any update on this? How can I identify the source of the problem?

Thanks,


Mismatch Sender Id when send Android Push Notifications

Posted: Fri Jun 05, 2015 8:00 am
by Illya Stepanov

Hello -

Could you please clarify what Libraries version you are using in your App Settings?

And what device and which Android version you are using for testing?


Mismatch Sender Id when send Android Push Notifications

Posted: Fri Jun 05, 2015 10:39 am
by Hawk

Hi Illya,

Libraries version 2.2, and the device is Android 4.2

Thanks,


Mismatch Sender Id when send Android Push Notifications

Posted: Fri Jun 05, 2015 11:30 am
by Illya Stepanov

Hi Hawk -

High probability that this is due to invalid sender ID or API key: http://stackoverflow.com/questions/11...


Mismatch Sender Id when send Android Push Notifications

Posted: Mon Jun 08, 2015 11:42 am
by Hawk

Hi Illya,

I've checked the sender ID and the API key according to the link. I've unlinked and linked my DB, reset the API Key on both Appery and google. I've created new project on google. I deleted and created new DB on Appery. None of that worked. I'm still getting the same sender ID mismatch error.

There is another suggestion here (http://stackoverflow.com/questions/12...) but I'm not sure if this applies to my situation or not.

Please advise.
Thanks,


Mismatch Sender Id when send Android Push Notifications

Posted: Mon Jun 08, 2015 3:09 pm
by Alena Prykhodko

Hello Hawk,

Please show us your Devices collection screen shot where we can see your registered device.

You should have correct values in fields "_id", "deviceID", and "token".


Mismatch Sender Id when send Android Push Notifications

Posted: Tue Jun 09, 2015 1:25 am
by Hawk

Hi Alena,

Below is a screenshot of the collection. It is only one device, and all these values have been inserted automatically when I launched the App

Image

Appreciate your help