i noticed that if windows file explorer is closed or that if i run the windowed version of the file explorer(explorer.exe -w), Avast notifications to ask are automatically denied
my guess is that your notification UI system is integrated from the system tray.
if you wanted to have a (light weight) notification system without the system tray, i would guess that you could use the windows service system to launch an executable manually to notify the user