Workaround `MAX_PACKAGE_NOTIFICATIONS`
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 217
- PR merge metrics
- No merged PRs in 30d
Description
Let's say I have a script that sends me a "warning" every 30s or so. Now I leave the room for \~30min. In that time, the script already has send > `MAX_PACKAGE_NOTIFICATIONS` (~= 50) notifications, so I never get notified, and miss the crucial thing the script wanted to remind me of.
A workaround is mentioned e.g. here: https://medium.com/mindorks/the-notification-limit-per-app-in-android-94af69a6862c
Basically we'd have to remember past notifications send, e.g. in a double-ended queue, and once that queue is >= MAX_PACKAGE_NOTIFICATIONS, cancel the oldest notifications.
Is anyone aware of a simpler workaround? What are you thoughts on this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.