We can add `switchPreference`s in `AppSettingsScreen` for the entrances: - Enable them if the permissions are not granted / Disable if not. - Click the `switchPreference` icon to request permissions or navigate to system Settings screens. Refs: - https://developer.android.google.cn/reference/android/provider/Settings#ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS - https://developer.android.com/develop/connectivity/vpn#always-on
We can add
switchPreferences inAppSettingsScreenfor the entrances:switchPreferenceicon to request permissions or navigate to system Settings screens.Refs: