Hi everyone.
I've got the push notifications set up for our game and they are sent and received just fine, but I'd like them to behave a bit more like common apps. I was also able to add a default sound and set the LED to flash. To do so simply add the following to GCMIntentService.java in onMessage() before the line "notificationManager.notify(0,notify)":
//play a sound
notif.defaults |= Notification.DEFAULT_SOUND;
//LED flash
notif.defaults |= Notification.DEFAULT_LIGHTS;
Next what I'd like to do is prevent the notification from being shown in the status bar if the game is running in the foreground, because my app itself handles a message for the same event that caused the notification (i.e. it's your turn).
It doesn't look like this is set by the Notification class.
I've been searching all morning and haven't had a bit of luck with it.
Can anyone help?
Thanks