We have currently only information for Oppo F1S, but on other models the situation may well be similar.
Background services are being killed (including accessibility services, which then need re-enabling) every time you turn the screen off. So far, a workaround for this is:
Pin your app to the recent apps screen.
Enable your app in the app list inside the security app’s “startup manager” and “floating app list” (com.coloros.safecenter / com.coloros.safecenter.permission.Permission).
Turn off battery optimizations.
Give the service a persistent notification to remain in the foreground.
All four of those need to be done before the app would function.
Here are links to some other resources verifying that some of the above steps work on other Oppo devices:
No known solution on the dev end
Copy embed code to clipboard