How do you stop app refreshes or restarts when the screen goes off?

When using CustomWebView and camera, I got a situation, the app refreshes or restarts when the screen goes off and is turned back on, is there an option in CustomWebView or in App Inventor to stop that.
I don't want to use the solution of keeping screen on.

That leaves you with two options:

  • use a Foreground extension

https://ullisroboterseite.de/android-AI2-KeepAwake-en.html

  • use a Background extension to keep the app running . Perhaps

that might work.

That might just be an issue of how you coded your app. You did not share your Blocks so one can only guess why the app 'restarts' ... what does that mean?

1 Like