Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to send silent notifications #241

Closed
jamieshaw opened this issue Mar 16, 2019 · 9 comments
Closed

Ability to send silent notifications #241

jamieshaw opened this issue Mar 16, 2019 · 9 comments

Comments

@jamieshaw
Copy link

jamieshaw commented Mar 16, 2019

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.

@robbiet480
Copy link
Member

Will get this in tonight

@robbiet480 robbiet480 changed the title Feature request: Ability to send silent notifications Ability to send silent notifications Mar 29, 2019
@robbiet480
Copy link
Member

Sorry, got sidetracked, it'll be in soon!

@gregschwartz
Copy link

This was another feature request I was going to add, thanks!

@robbiet480
Copy link
Member

Implemented in 2.0 beta.

@robbiet480
Copy link
Member

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

@DavidFW1960
Copy link

I am just an innocent bystander

@robbiet480
Copy link
Member

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.

@DavidFW1960
Copy link

Yep!

@calipee
Copy link

calipee commented Jan 6, 2023

Just for some people having the same problem as I did:
Now the correct structure for IOS is described in the docs:

automation:
  - alias: Make some noise
    trigger:
      ...
    action:
      - service: notify.mobile_app_<your_device_id_here>
        data:
          message: "Ding-dong"
          data:
            push:
              sound: none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants