Skip to main content

JavaScript API

TheFlex offers a JavaScript API to access device- or browser-specific functions from websites or Fiori apps. This can be used to implement additional functions such as:

  • Safely save and load offline data. This can be used to securely and persistently cache offline data, ensuring that it cannot be automatically deleted by the browser.
  • Access to backhand scanners, such as receiving scanned data, showing information on the scanner's display, or triggering actions such as blinking the LEDs.
  • Use of hardware on the device, such as Bluetooth, NFC or GPS.

Controlling the keyboard

The keyboard can be controlled using the following two commands:


This control is made possible via the Cordova Keyboard Plugin. However, this does not need to be integrated, as TheFlex automatically makes this plugin available to every app.