Hi,
is it possibile to set the kiosk mode with Java Script command?
Thanks,
Hi,
is it possibile to set the kiosk mode with Java Script command?
Thanks,
Can you elaborate further? Do you want to switch between User Mode and Admin Mode using a Javascript based script? Do you want to insert Javascript into the HTML template? Or something else?
Hi Matt,
I would to send a script (JavaScript) or an action that locks the device.
The user must not have access to the apps.
Thanks,
If the "LOCK" action is to be interactively initiated by MobiControl administrator via the web-console, the SIMPLEST approach is to deploy a profile with virtually no app item in a kiosk/lockdown-menu payload. Revoking such profile has the effect of UNLOCKING the device for normal day-to-day operation.
Depending on your MobiControl version and device version/enrollment-mode, a similar alternative may be possible by deploy a profile with virtually empty app whitelist in an application-run-control payload.
Both of the above seems to be much simpler than sending a correct multi-line javascript file involving "mobicontrol.lockdown" class.
The requirements here are unclear, but I am interpreting this as to mean that you have a Lockdown profile applied to the device and you would like to enable or disable the lockdown from the SendScript action feature.
Javascript Engine
To disable lockdown:
mobicontrol.lockdown.disable
To enable Lockdown:
mobicontrol.lockdown.enable
Legacy Android Script Engine
To disable lockdown:
notify kiosk off
To enable Lockdown:
notify kiosk on
NOTE: This will not put the device in Admin mode. It will only just toggle the lockdown (kiosk).
Relevant Links:
https://www.soti.net/mc/help/javascriptapi/en/mobicontrol.lockdown.html
https://www.soti.net/mc/help/v15.5/en/console/other/sending_scripts.html
https://www.soti.net/mc/help/v15.5/en/scriptcmds/reference/androidplus_enterprise_do.html
In our environment we use the following to lock/unlock Android devices (7 through 11 / DA and AEDO) using the Legacy Scripts:
Unlock:
Hi Mattia,
Thank you for posting on SOTI Central.
Thank you for Matt Dermody, Raymond Chan, TJ Bukoski and Patrick B for responding to the post.
I am unsure about the question to send the script to the device to lock user to access to apps.
1. If you would like to lock out all the apps on the device (the Lockdown screen will be blank with no apps on it). Please kindly follow the instruction that Raymond Chan suggested.
2. If you would like to allow users to have access to some apps in the Lockdown kiosk, please configure the apps access in the Lockdown profile.
In addition, if you would like to send the script to apply the Kiosk screen back to the device (the device must already have a Lockdown profile assigned), then please send the below script to the device.
notify kiosk on
Kind Regards,
Technical Support | SOTI Inc. |1.905.624.9828 | support@soti.net | www.soti.net |