I am working on Google cloud messaging service in my android app. For this I need to register my android app to GCM server. The gcm registration is failing.
I have checked: The gcm register code is Async call. The sender id (project id) is correct. The manifest file is as per the google doc. http://developer.android.com/google/gcm/client.html My device has google account set up. I have tried both the cases - add google-play-services jar and import it as project. I even went on to specify the version number (com.google.android.gms.version) in manifest as per this http://developer.android.com/google/play-services/setup.html#Setup
Where and why would this be failing? When I catch the exception, exception cause is NULL.
I had done a demo app for this GCM part and it was working fine. I had used Eclipse with JellyBean SDK. I extended this project to make the current app - package stucture remains same. But now am on Kitkat SDK.
I used the same Sender Id as before to register with GCM. It failed giving null id. I created new project at cloud console and used its project number as sender id. Still same error. Registration Id is null. I don't think Sender Id should be any issue.
Any help would be appreciated.