phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.32k stars 996 forks source link

not notification on Android with GCM #282

Open 20pro opened 10 years ago

20pro commented 10 years ago

Hello, I have a problem with GCM on android. When i start my application i've this message on log console :

V/PushPlugin( 4295): execute: action=register

V/PushPlugin( 4295): execute: data=[{"senderID":"steel-pod-657","ecb":"Factory.prototype.onNotificationGCM"}]

V/PushPlugin( 4295): execute: jo={"senderID":"steel-pod-657","ecb":"Factory.prototype.onNotificationGCM"} V/PushPlugin( 4295): execute: ECB=Factory.prototype.onNotificationGCM senderID=steel-pod-657 D/GCMRegistrar( 4295): resetting backoff for com.whaller

V/GCMRegistrar( 4295): Registering app com.whaller of senders steel-pod-657 W/ActivityManager( 1259): Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gsf (has extras) } U=0: not found

Can you help me please ?

xenny commented 10 years ago

What I can spot is your senderID is incorrect. Open your project in Google Play Developer Console and check the ID. senderID should be a number, e.g. 618198000001

fcavola commented 9 years ago

I have the same error with a simple ionic app and cordova pushPlugin , i could put it in codepen. The senderID is right and the successHandler is called, but the onNotificationGCM is not called. Any advice?

hmedney commented 9 years ago

Encountered the same problem while testing inside the emulator. Solution was to set the device target to the Google APIs system image.

mariohmol commented 8 years ago

Exactly same thing here.. Google Api is installed at my SDK Level that i'm using (lvl 19) .. any ideas?