Skip to content Skip to sidebar Skip to footer

Android - Device Id From Gcm Return Empty

I have to get only device id from GCM for further use. I try all but result is negative, Device id I get is empty. Please help Here is code: GCMRegistrar.checkDevice(this); GC

Solution 1:

GCMRegister is deprecated use Google Cloud Messaging refer this link https://developers.google.com/cloud-messaging/android/start.

Solution 2:

Put your GCM code in application package

Solution 3:

Put your GCM code in your main package(e.g "com.sample" in this case) of application that is defined in manifest:

package="com.sample"

Post a Comment for "Android - Device Id From Gcm Return Empty"