How to enable status bar in KIOSK mode for 7.0 device?

926 Views Asked by At

I have been developing a KIOSK application where i am unable to enable status bar for devices running OS 7.0 or below. I have enabled all the settings in my policy e.g.

 "statusBarDisabled": false,
 "kioskCustomization": {
    "powerButtonActions": "POWER_BUTTON_AVAILABLE",
    "systemErrorWarnings": "ERROR_AND_WARNINGS_ENABLED",
    "systemNavigation": "NAVIGATION_ENABLED",
    "statusBar": "NOTIFICATIONS_AND_SYSTEM_INFO_ENABLED",
    "deviceSettings": "SETTINGS_ACCESS_ALLOWED"
  }

but the status bar is still disabled and i am unable to see the battery and time information. However, the same settings are working perfectly fine for devices running OS 8.0 or above.

Help appreciated, thanks

1

There are 1 best solutions below

0
On

“statusBarDisabled” is already deprecated, you can remove it on your policy. Unfortunately, statusBar isn't supported for 7.0 devices. It's only supported from API level 28 (aka Android 9 / Android Pie). You may refer to this link for more information about this.