Skip to content

feat: Implement Kiosk Mode and Runtime Permissions #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krupuk1
Copy link

@krupuk1 krupuk1 commented May 22, 2025

This commit introduces basic Kiosk Mode functionality and robust runtime permission handling for storage access.

Kiosk Mode Features:

  • Modified MainActivity to override the back button behavior, preventing app exit and allowing WebView backward navigation.
  • Implemented immersive mode to hide system bars for a more focused user experience.
  • Added android:lockTaskMode="if_whitelisted" to AndroidManifest.xml to enable screen pinning capabilities, a step towards a true kiosk experience.

Runtime Permissions:

  • Implemented runtime requests for WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permissions in MainActivity.
  • Permissions are checked on app launch.
  • You are informed via a Toast message if permissions are denied, explaining their necessity.

These changes aim to provide a more controlled and user-friendly experience, especially for dedicated use cases of the application. Manual testing of screen pinning and physical button interactions is recommended to ensure desired behavior across various devices.

This commit introduces basic Kiosk Mode functionality and robust runtime permission handling for storage access.

Kiosk Mode Features:
- Modified MainActivity to override the back button behavior, preventing app exit and allowing WebView backward navigation.
- Implemented immersive mode to hide system bars for a more focused user experience.
- Added `android:lockTaskMode="if_whitelisted"` to AndroidManifest.xml to enable screen pinning capabilities, a step towards a true kiosk experience.

Runtime Permissions:
- Implemented runtime requests for `WRITE_EXTERNAL_STORAGE` and `READ_EXTERNAL_STORAGE` permissions in MainActivity.
- Permissions are checked on app launch.
- You are informed via a Toast message if permissions are denied, explaining their necessity.

These changes aim to provide a more controlled and user-friendly experience, especially for dedicated use cases of the application. Manual testing of screen pinning and physical button interactions is recommended to ensure desired behavior across various devices.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant