21

I am new to android and I'm playing around trying some features here and there. I wanted to know what is the way to use silent push - meaning get a push notification on the device without any alarm, notification or vibration - i.e. without the user to be aware of it. If someone have a tutorial he can refer me to I'll be more than gratefull.

Eran
  • 387,369
  • 54
  • 702
  • 768
crazyPixel
  • 2,301
  • 5
  • 24
  • 48
  • 1
    The notification will popup only as long as the `title` and `message` fields are present in your payload. Otherwise, the notification will be completely silent, it took me a while to realize this. – andreszs Feb 03 '15 at 21:42

1 Answers1

33

The default push in Android (Google Cloud Messaging for Android) is a silent push. You actually have to write code in order for the push notification to generate a notification, sound or any other effect noticeable by the user.

Read the GCM Guide.

Eran
  • 387,369
  • 54
  • 702
  • 768