I'm using a Vivo X300 Ultra on OriginOS 7 (Android 17). On this phone, as many other Chinese phones, notification icons disappear from Always On Display after unlocking the phone, even if you didn't clear or read the notifications. So when unlocking and then locking again, no icons from old notifications will appear on AOD. Sadly this is by design, not a bug. Although contrary to some other phones, the notifications at least remain on the lock screen in this case.
I followed this tutorial utilizing Tasker+AutoNotification to be able to get the icons to reappear.
https://www.reddit.com/r/oneplus/comments/1ov3w1l/how_to_get_notifications_to_stay_on_stay_on_your/
It worked fine while I was using OriginOS 6, however after updating to version 7, apparently this method got broken due to some system changes. There are a few quirks to mention here. Tasker toggling DND or running some other commands works fine, but after the screen is locked AutoNotification Snooze command normally doesn't trigger unless either:
a) I wake the screen manually,
b) phone is charging (either wall charger, PC USB, or wireless),
c) the timing is correct.
What do I mean by c)? There seems to be some kind of an alarm delay timer following 5-minute checkpoints. This timer is always exact, which I assume is related to the boot event, and allows the snooze to pass through. For example, I locked the screen at 19:40:00, then at 19:41:34 autotasker snooze was able to run. Subsequently I locked the screen at 19:42:00 and didn't wake it, the snooze ran at 19:46:34 exactly. There is no such problem with other notifications.
Note that I disabled all battery optimizations for Tasker and AutoNotification, locked them in recents and allowed all permissions. I tried to do some digging (with help of AI) - tried to disable doze, even tried to spoof charging, but nothing helped so far.
Is there another (no-root) way to force a notification refresh as soon as locking the screen?