Here are the logs of two flows:
07-30 15:36:59.341 I 8293@3: App in foreground?
07-31 08:58:20.948 I 8293@3: Resumed after restart
07-31 08:58:20.967 I 8293@3: App in foreground?
07-31 08:58:20.968 F 8293@3: java.lang.IllegalStateException: Accessibility service not running
07-31 08:58:20.968 I 8293@3: Stopped by failure
07-31 08:30:00.944 I 8302@2: Interruptions?
07-31 08:58:21.980 I 8295@43: Resumed after restart
07-31 08:58:21.993 I 8295@43: Time window?
07-31 08:58:22.023 I 8302@2: Resumed after restart
07-31 08:58:22.023 I 8302@2: Interruptions?
07-31 08:58:22.025 F 8302@2: java.lang.IllegalStateException: Notification listener service not running
07-31 08:58:22.025 I 8302@2: Stopped by failure
There are two blocks, App in foreground? and Interruptions?
For this later, I got the error Notification listener service not running.
Tell me if you need any further infos.