google cloud messaging - Android GCM SENDER_ID, how to get it? -
i try migrate gcm
, have issue sender_id
need provide. use demo project google. in project need, if understand well, provide sender_id
application in commonutilities.java file.
the sender_id provided api key registered on https://code.google.com/apis/console/ , has form: aizasyaxxxxxxx_xxxxxxxxxxxnogzw
(total 40 chars).
using string sender_id
on "broadcastreceiver mhandlemessagereceiver" error message: from gcm: error (invalid_sender)..
where mistake? string provide not sender_id
?
thank you.
no, sender_id project id signed @ google api console, should numeric string. e.g. on browser uri, should see this:
https://code.google.com/apis/console/#project:4815162342
the sender id 4815162342
updated answer:
google has not updated docs completely. above answer old , based on documentation , seems still not updated.
according updated google docs, seems project number on google api console used sender id
Comments
Post a Comment