unity-gcm icon indicating copy to clipboard operation
unity-gcm copied to clipboard

To show notifications when app is not running

Open masterprize opened this issue 11 years ago • 4 comments

Added method SetNotificationsEnabled

masterprize avatar Apr 29 '14 10:04 masterprize

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

elvisx avatar May 12 '14 02:05 elvisx

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 avatar May 12 '14 07:05 masterprize

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

masterprize avatar May 12 '14 07:05 masterprize

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

elvisx avatar May 12 '14 08:05 elvisx