Skip to content

System Settings Navigation breaks Kiosk Mode of App #32383

@cactusjack66

Description

@cactusjack66

My maui app (target plattform Android 23) runs in Kiosk-Mode, so the "go to homescreen"-button and the "display active apps"-button in the nav bar at the bottom are not visible and the menu is missing, that appears when you swipe from top to bottom. The background is, that the user cannot leave the app. Additionally the app is set up as device owner and as homescreen, so it starts when the device is powered on.

At some point, it is neccessary to open parts of the system settings like:

MainActivity.Instance.StartActivity(new Intent(Android.Provider.Settings.ActionDisplaySettings));

When I call this, the system's display settings appear. When I use the back button in the bottom bar, the system settings switch back to the app. All fine.

But when I tap the back arrow in the system settings (small arrow in the upper left corner), the main settings menu appears, which is not what I want. At this point, I can even leave the app completely by tapping the backbutton in the bottom bar. This brings me to the normal android-launcher homescreen. This should not happen, because the app runs in Kiosk mode.

So, is there a way to remove the back button in the system menu? So that the app stays in the called activity or that the back arrow in the system settings brings me back to the app instead of the root enu of the settings menu?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions