-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hello DonnKey :)
A few days ago I found this fantastic project. With its help, I was able to successfully start my app in kiosk mode. Thanks a lot for this :).
Now I was wondering what happens if the user comes up with the idea of rebooting the device. Or what happens when the battery dies and the device needs to be restarted. How can I make the kiosk-app start automatically? I found two stackoverflow entries:
- https://stackoverflow.com/questions/70966081/how-to-start-your-android-app-at-boot-in-flutter
- https://stackoverflow.com/questions/3872063/how-to-launch-an-activity-from-another-application-in-android
and extended the AndroidManifest.xml of the KioskInstaller accordingly

and added a BroadcastReceiver:

And that works. After a while. After restarting the device, it sometimes takes 15 seconds, sometimes 30 seconds, sometimes 60 seconds for the kiosk-app to start. Until then, the user can use the device normally and do all sorts of things.
Do you know a better way?