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.

4 notifications can cause clearing sticky/persistant to fail

See original GitHub issue

Home Assistant Android version: 2021.1.1-full

Android version: 11

Phone model: Pixel 5

Home Assistant version: 2021.1.5

Last working Home Assistant release (if known): None that I know of

Description of problem: If there are more than three sticky and persistant notifications, and the last three sent are cleared before the first one sent. The last one cleared will fail to clear.

Steps to reproduce:

  1. Send a stick/persistant notification to the phone, I did this through Developer Tools, could be done through a script pretty easily though.
service: notify.mobile_app_alex_phone
data:
    message: test this will not clear
    data:
      persistent: true
      tag: test0
      sticky: true
  1. Send 3 more notifications to the phone without clearing any of them.
service: notify.mobile_app_alex_phone
data:
    message: test this will clear
    data:
      tag: test1
---
service: notify.mobile_app_alex_phone
data:
    message: test this will also clear
    data:
      tag: test2
---
service: notify.mobile_app_alex_phone
data:
    message: test this too shall clear
    data:
      tag: test3
  1. Swipe clear the last 3 notifications you sent
  2. Clear the persistent notification.
service: notify.mobile_app_alex_phone
data:
    message: clear_notification
    data:
      tag: test0

expected behavior: The first notification clears

actual behavior: The notification does not clear.

Workaround: Force closing the app from the android settings page for it clears the notification.

Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs): If you feel I need to get logs, I should be able to get that sorted.

Screenshots: Screenshot_20210204-002851

Additional information:

I did some testing that suggests when the persistent message shows up doesn’t matter so much as long as there are 4 messages.

One thought on this, I noticed that 4 is the break point at which notifications are rolled up into channels, so it might be related to that?

Might be related to #1223 or #1238 ? But If I understand correctly those fixes were released in 2021.1.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
chriss158commented, Feb 4, 2021

I can reproduce this issue. I will make a PR to fix this 👍

0reactions
alexivescommented, Feb 4, 2021

group attribute, to group all notification together

Perfect, thanks! TBH, I probably should use that anyway!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use notifications on your iPhone or iPad - Apple Support
Swipe left over a notification to manage alerts for that app, or clear the notification. Touch and hold a notification to view the...
Read more >
Control notifications on Android - Google Help
To clear all notifications, scroll to the bottom of your notifications and tap Clear all. ... Tip: You can clear some notifications only...
Read more >
Troubleshoot Slack notifications
System settings can sometimes interfere with Slack notification delivery. If you're not receiving notifications, give these steps a try. Tip: Make sure you ......
Read more >
Troubleshooting Duo Push notification issues on Android ...
To confirm whether Push notifications are working for end-users, ... as a weak connection can delay a push or can cause you to...
Read more >
Notifications - Blackboard Help
You can control which activity appears in your stream. Select the Stream Notification Settings tab to open the panel. Notifications for due dates,...
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