I need to implement Kiosk Mode in Android 14/ API 34 using MAUI
App should have below features:
- App should be always on top
- User can not close it
- Block settings access,
- Block access to device info
- Block manual incoming/outgoing calls, but Application can do it on behalf of user if needed
- Disable device sleep
- Pin aps to full screen mode
- Auto-load kiosk apps at startup
- Portrait or landscape orientation lock
The MAUI setting
DeviceDisplay.Current.KeepScreenOn = true;
does not work, screen is locked anyway
Using below code I can hide navigation bar from user, but user can swap and get still access to navigation pane
Window.DecorView.SystemUiVisibility = (StatusBarVisibility)
(SystemUiFlags.ImmersiveSticky | SystemUiFlags.HideNavigation |
SystemUiFlags.Fullscreen | SystemUiFlags.Immersive);
Setting StartLockTask
have message which user need to tap and prevent incoming call.
2