Following up from #92: requesting the ability to selectively send silent notifications for use with updating the badge in the background.
Usage: Pass 'none' (or similar) as a sound:
service: 'notify.ios_jamie'
data:
message: 'delete_alert'
data:
push:
badge: 0
sound: 'none'
Context: I have an automation that monitors persistent_notification messages and displays this number as a badge. On dismissal of a notification, I would prefer these to be silently updated in the background.
Will get this in tonight
Sorry, got sidetracked, it'll be in soon!
This was another feature request I was going to add, thanks!
Implemented in 2.0 beta.
Thank @DavidFW1960 for making this a breaking change for everyone that actually wanted sound. To have sound now, you need to set sound: "default" in the push dictionary.
message: A test message with a sound
push:
sound:
name: default
I am just an innocent bystander
Behavior has been changed back thanks to #399. Sound is on by default once more since most people want sound. You can disable sound by setting sound to none in the notification payload.
Yep!
Most helpful comment
Behavior has been changed back thanks to #399. Sound is on by default once more since most people want sound. You can disable sound by setting
soundtononein the notification payload.