java - Android GCM Registration is failing -


i working on google cloud messaging service in android app. need register android app gcm server. gcm registration failing.

i have checked: gcm register code async call. sender id (project id) correct. manifest file per google doc. http://developer.android.com/google/gcm/client.html device has google account set up. have tried both cases - add google-play-services jar , import project. went on specify version number (com.google.android.gms.version) in manifest per http://developer.android.com/google/play-services/setup.html#setup

where , why failing? when catch exception, exception cause null.

i had done demo app gcm part , working fine. had used eclipse jellybean sdk. extended project make current app - package stucture remains same. on kitkat sdk.

i used same sender id before register gcm. failed giving null id. created new project @ cloud console , used project number sender id. still same error. registration id null. don't think sender id should issue.

any appreciated.

so gcmregistrar class giving out, failed register?

  • i think manifest file - check correctly until sure did right.

i had other problem when implemented gcm project. giving out "regestration okay" reg_id gcm server needed read out, giving me empty (not null) empty lol.

i moved mainactivity (where regestration happens) in "original" package of project , worked.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -