NotificationPusher icon indicating copy to clipboard operation
NotificationPusher copied to clipboard

Sending 'silent' notifications

Open pataar opened this issue 6 years ago • 5 comments

Hello,

I was wondering if it would be possible to send 'silent' notifications. So notifications that basically skip the devices' notification center in both Android and iOS. Any idea how?

Thanks in advance!

pataar avatar Nov 03 '17 14:11 pataar

Hey @pataar Did you find a way to send silent notifications?

bmourat avatar Feb 25 '18 09:02 bmourat

Hi @bmourat, unfortunately not yet. Still waiting for a response.

pataar avatar Feb 25 '18 12:02 pataar

Hi if by 'silent' you mean push notification which device doesnt handle (doesnt show any notif to user), it called dry run. you can set option dry run to true. it actually a feature by gcm for developers. if you want send push and not want user to see but your app receive and read it, dont fill 'notification' key and just fill data key in json with what you want.

aliemam avatar Feb 25 '18 14:02 aliemam

@aliemam thanks!

bmourat avatar Feb 26 '18 08:02 bmourat

@aliemam Thank you, I'm going try this soon.

pataar avatar Feb 26 '18 08:02 pataar