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.

Notifications using the same tag not replacing previous notification

See original GitHub issue

Home Assistant Android version: 2022.11.0-full

Android version: 13 (OneUI 5.0)

Phone model: Samsung Galaxy S21 5G

Home Assistant version: 2022.11.5

Last working Home Assistant release (if known): Unknown

Description of problem: I assume this is a bug with the Android app and not HA Core, so am logging this here as a starting point.

Recently, potentially coinciding with the phone upgrade to Android 13, notifications using the same tag are no longer replacing the text in the notification. Only the icon is getting updated, leaving the text from the previous notification in place. I can consistently reproduce this. See examples below. However, it seems to occur with all notifications using the same tag, where they were previously replaced correctly, they no longer are.

Screenshot of problem:

image

Additional information:

service: notify.galaxy_s21
data:
  title: "Battery Critical"
  message: >-
    The battery level is critical.
  data:
    notification_icon: mdi:battery-alert-variant-outline
    actions:
      - action: URI
        title: View
        uri: /lovelace-home/batteries
    clickAction: /lovelace-home/batteries
    ttl: 0
    priority: high
    color: red
    sticky: true
    group: Batteries
    tag: battery_notification
service: notify.galaxy_21
data:
  title: Battery Replacement Logged
  message: >-
    The battery replacement has been logged.
  data:
    notification_icon: mdi:battery-arrow-up
    clickAction: /lovelace-home/batteries
    ttl: 0
    priority: high
    color: green
    sticky: true
    group: Batteries
    tag: battery_notification

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
robertwigleycommented, Dec 1, 2022

I’ve only recently received the update to Android 13. I know someone else with the same model of phone. When I see them next I will see if they have updated to Android 13 and whether I can test it on their phone. In the meantime I will remove options one by one as you suggest. I’ll update when I have further information. Thanks.

0reactions
robertwigleycommented, Dec 13, 2022

OK. Thanks. That’s useful. That gives me some official Android documentation to point them at if I can find someone to complain about it to. LOL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can a web push notification replace previous notifications ...
Simply go to Settings > Danger Zone > Push Settings and enable "Notification overwriting".
Read more >
new information replace old information in notification
If a notification with the same tag and id has already been posted by your application and has not yet been canceled, it...
Read more >
Using the Notifications API - MDN Web Docs
If a notification already has the same tag and has not been displayed yet, the new notification replaces that previous notification.
Read more >
Notification behavior - web.dev
The tag option is simply a way of grouping messages so that any old notifications that are currently displayed will be closed if...
Read more >
NotificationManager
If a notification with the same tag and id has already been posted by your application and has not yet been canceled, it...
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