Ios: Ability to send silent notifications

Created on 16 Mar 2019  路  8Comments  路  Source: home-assistant/iOS

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.

feature-request

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 sound to none in the notification payload.

All 8 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

snowe2010 picture snowe2010  路  12Comments

vmcosco picture vmcosco  路  8Comments

andynbaker picture andynbaker  路  3Comments

wilfredsmit picture wilfredsmit  路  5Comments

wolverinevn picture wolverinevn  路  3Comments