To run successfully, this sample demo 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.
Your iOS device must be connected to the Star printer either through a local Wi-Fi connection, via Bluetooth (as in the Star TSP654BTi), or through a wired USB-Lightning connection (as in the TSP143IIU), which must be configured prior to app launch.
For more information about Star printers, visit this page. In addition, Star has several utility apps available through the iTunes App Store that can be used for testing and configuration; particularly helpful is the 'Star Setting Utility', available for free here.