0

My app receives push notifications when app is closed and is in the background. https://developers.google.com/cloud-messaging/downstream as this document said,

When your app is in the background, Android directs messages with notification to the system tray. A user click on a notification opens the app launcher by default.

But the problem is that I can't handle silent push when my app is in the background or closed. I got push notification that doesn't have a title, it's empty message but it goes off! It's not a silent push at all.

How can I receive my silent push message as silent?

Bright Lee
  • 2,306
  • 2
  • 27
  • 55
  • my recommendation: use fcm, as the link also states out, and send fcm messages without notification data in payload. – JacksOnF1re Jun 08 '17 at 14:15
  • @JacksOnF1re Hi, Thanks for your comment. Then, it's impossible to make it as silent when the app is in the background with using gcm? – Bright Lee Jun 08 '17 at 14:28
  • 1
    I must confess, I have no experience with gcm, but fcm. I've no idea if they are any different. But I assume, basically it should be kind of the same. But I can't do any suggestions if it is possible or not. Sorry – JacksOnF1re Jun 08 '17 at 14:29
  • 1
    @JacksOnF1re OK. but many Thanks! – Bright Lee Jun 08 '17 at 15:03
  • @JacksOnF1re I'm gonna try this. It seems that it would work. https://stackoverflow.com/questions/36555653/push-silent-notification-through-gcm-to-android-ios – Bright Lee Jun 08 '17 at 16:07

0 Answers0