To run successfully, this code requires the following:
For live projects, we highly recommend hosting the 'kiosk_functions.js' file with your own files, whether they are placed on a server or stored locally on the iPad, and checking the app's change logs before updating. The 'kiosk_functions.js' file referenced in the sample may be updated or moved without warning - if you are referencing this file directly, this would prevent your kiosks from working correctly.
iOS device must be connected to an external monitor, either through AirPlay over a local WiFi network or directly through Apple's digital AV adapters (available for both 30-pin and Lightning connections).
For more information about setting up AirPlay for your device, visit this page. For more information about using Apple's digital AV adapters, visit this page.