I'm trying to implement the Push Notification example for hybrid apps provided by IBM, but I get the registration error below. GCM API KEY and PROJECT ID are correctly set in the application-descriptor.XML.
I deployed the APK signed with the distribution certificate in my Nexus 5 (Android 4.2.2), but it doesn't work yet.
Is there anybody able to help me ? I'm working with Worklight Studio 6.2
Thanks.
GCMRegistrar(29967): resetting backoff for com.PushNotifications GCMRegistrar(29967): Registering app com.PushNotifications of senders testpushgcmproject GCM(1431): GCM config loaded GCMBroadcastReceiver(29967): onReceive: com.google.android.c2dm.intent.REGISTRATION GCMBroadcastReceiver(29967): GCM IntentService class: com.PushNotifications.GCMIntentService GCMBaseIntentService(29967): Acquiring wakelock GCMBaseIntentService(29967): Intent service name: GCMIntentService-DynamicSenderIds-2 GCMBaseIntentService(29967): handleRegistration: registrationId = null, error = INVALID_SENDER, unregistered = null GCMBaseIntentService(29967): Registration error: INVALID_SENDER GCMBaseIntentService(29967): Releasing wakelock
SENDER_ID =项目编号 ,可能是您使用了错误的SENDER_ID,例如项目ID。项目编号在控制台上位于项目ID旁边。
You need to use the Project Number. You can see it after accessing your GCM "project":
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.