JS: Device Information
Device Information
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Get WiFi SSID
Returns WIFI SSID, requires version 1.42 or higher.
<script>
//GET WIFI SSID
fPopularJS: Launch Apps/Settings/Exit
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
Launch Apps/Settings/Exit JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Open Settings
Opens Kiosk Browser Settings.
<script>
function opSome readersJS: Browser Functions
Browser Functions JavaScript Functions
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Is App In Focus?
Check if Kiosk Browser is in focus, requires version 2.0.22 or higher.
<script>
//IS KIOSK BROWSER IN FOCUS?
function isAppInFocus() {
return AndroiFew readersJS: Bluetooth
Bluetooth JavaScript Functions
You may use the KBBluetooth namespace when communicating with a bluetooth device, note you can communicate with more than just printers using SPP (serial port profile) over bluetooth.
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Standard Communication
sendBytes(string bytes)
Send bytes directly to the connected bluetooth device. Returns falseFew readersJS: Hardware
Hardware JavaScript Functions
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Enable/Disable WiFi
Enables or disables WiFi, requires version 1.43 or higher.
<sFew readersJS: Barcode Scanner
Barcode Scanner JavaScript Functions
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Open Barcode Scanner (without data)
Opens barcode scanner activity.
<scripFew readersJS: Util
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
Util JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Show Android Toast Message
Shows your message in a toast.
<script>
function showAndroFew readersJS: EddyStone Beacon Support
||| Deprecated in v2.8.8 or higher.
A dedicated beacon monitoring test page can be found here: http://www.android-kiosk.com/beacontest.htm
Version 2.6.6 (build 230) or higher is required for beacon support.
What is Eddystone?
Eddystone is a BLE format developed by Google. It’s open and multiplatform, so you can use it with both Android and iOS. There are four types of data a beacon can broadcast with Eddystone, described by three frames:
Eddystone-URL for broadcasting URL addressesFew readersJS: Printing
Printing JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Print Page via Android Print Client
Print Page via Android Print Client, requires version 2.0.40 or higher.
<script>
//PRINT PAGE VIA ANDROID PRINT CLIENT
function printPage() {
Android.printPage()Few readersJS: Provisioned/Samsung Knox Devices
Provisioned/Samsung Knox Devices JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Get Device Provisioning Status
Gets device provisioning status, requires version 2.6.6 or higher.
<script>
function isProvisioned() {
return Android.isProvisioned();
}
</script>
<a href="javascript:showAndroidToast(isProvisioned());">Get Device Provisioning Status</a>Few readersJS: Remote Management
Remote Management JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Get Unique Remote Management Device Identifier
Returns unique Remote Management device identifier, requires version 2.0.21 or higher.
<script>
//GET UNIQUE IDENTIFIER
function getRemoteIdentifier() {
return Android.getRemoteIdentifier();
}
</script>
<a href="javascript:showAndroidToast(getFew readersJS: Home Page
Home Page JavaScript Functions
Please note most functions apply to both Kiosk Browser and Launcher but some are specific the individual product.
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Load Home Page
Load the homepage, requires version 1.45 or higher.
<script>
//LOFew readersJS: NFC
NFC JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
|| Please note that only URL & text tag types are supported (NDEF).
NFC Results via Callback
Register for the NFC scan/read callback. Once registered each scan result is sent via nfcScanResult(data), however if the tag is Mifare Ultralight then data from memory are also returned via nfcScanResultMifareUltrFew readersJS: App Drawer
App Drawer JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Show/Hide App Drawer
Show or hide app drawer, requires version 2.5.0 or higher.
<script>
//SHOW APP DRAWER
function showAppDrawer() {
Android.showAppDrawer();
}
//HIDE APP DRAWER
function hideAppDrawer() {
Android.hideAppDrawer();
}
</script>
<a href="javascript:showAppDrawer();">Show App DrawerFew readersJS: Screensaver
Screensaver JavaScript Functions
| You can find the JavaScript test page at https://www.android-kiosk.com/jstest.htm Just set this as the Kiosk URL on your device to test the functions.
Delay Screensaver
Delays screensaver start by default idle timeout (if not already started), requires version 2.0.38 or higher.
<script>
//DELAY SCREENSAVER
function delayScreensaver() {
return Android.delayScreensaver();
}
</script>
<a href="javascript:delayScreensaver();">Delay screensaver stFew readers