kobakei / unity-gcm

Unity plugin for Google Cloud Messaging (GCM)
59 stars 34 forks source link

To show notifications when app is not running #10

Open masterprize opened 10 years ago

masterprize commented 10 years ago

Added method SetNotificationsEnabled

elvisx commented 10 years ago

help~~, it's still not work in background, when I don't open my app, I can't receive the message@@

masterprize commented 10 years ago

Do you recieved an gcm token? Android manifest is correct? Did you set register on server to true? Gcm-service responses with no errors? Try to switch device to debug mode, attach to pc/mac, on recieving data from server it write to Log.d message.

masterprize commented 10 years ago

Also on some devices i got this error. It needs to rebuild jar. http://stackoverflow.com/questions/11990932/gcm-fc-sender-id-not-set-on-constructor

elvisx commented 10 years ago

I solved the problem. There are exceptions to this line => contentTitle = json.getString("content_title");