问题
I can't get register id with my project id
Can i get new project id with different google account for same project.
回答1:
follow the steps below:
- launch your application
- check if register-id
- if register id is empty string then check for any error messages in ddms
- if there is no error messages then
a) Check whether senderid is correct.
b) Check your manifest permissions - if there are error messages then can you paste it here?
genereally what happens when application launches first time it take some time to generate the register id and register id can be catch in onRegister() method in GCMIntentService class.
来源:https://stackoverflow.com/questions/12367792/android-gcm-register-id-and-project-id