question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conflict between `alert_once` and `group` options for notifications

See original GitHub issue

Home Assistant Android version: 2021.9.0

Android version: 11

Phone model: Pixel 5

Home Assistant version: 2021.10.0

Description of problem: The alert_once option for notifications does not work properly if a group is also specified.

Additional information:

Easily repeatable using developer tools to call the service:

service: notify.mobile_app_pixel_5
data:
  message: aoeu {{range(1,99)|random}}
  data:
    # group: "aoeu"
    tag: blah
    alert_once: true

When uncommenting the group line, a sound will be played every time the notification is sent. When it’s commented out, alert_once works properly and only plays a sound if the notification isn’t already visible.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Oct 6, 2021

Ah ha I found the issue as to why it did not work earlier, for groups we have an additional notify call to post the notification in order to group them and what happened was the group data that I tested with was not there.

For this we need to set GROUP_ALERT_CHILDREN as the group alert behavior because the first notification posted to the group is the group summary. Will get a PR ready to fix 😃

0reactions
gazpachokingcommented, Oct 6, 2021

Doing some initial testing and none of those optoins silence a notification in the group, I think we may just want to tell users not to group these notifications

Man, that’s disappointing. Perhaps a bug in android itself then. Really I see no reason or documentation that the onlyAlertOnce shouldn’t work in groups. I was hoping the groupAlert behavior could fix that deficiency, but 🤷‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use notifications on your iPhone or iPad
iPhone showing how to manage notifications. Swipe left over an alert or group of alerts. Tap Options, then select from these options:.
Read more >
How do I set up moderation alerts for my Facebook group?
Tap in the top right of your group, then tap See all tools, then Moderation alerts, then settings in the top right. To...
Read more >
Sign up for Alerts & Notifications | Mobile Banking
Set up alerts and notifications to get account updates sent directly to your mobile device or email account. Customize alerts to keep track...
Read more >
Alert notifications flow | Opsgenie
This doc will bring you through the flow of an Alert once created, based on the ... Other Integration rules and settings can...
Read more >
Enable Task Notifications
Let users receive notifications and reminders for tasks. ... Get Help Setting Up Lightning Sync · How Salesforce Manages Sync Conflicts Between Products ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found