Accessing the iPad's cameras within Kiosk Pro
If your content is hosted online and you need some way of accessing the image file after it is taken, your only option is the HTML 5 Media Capture API, which uses an input field to trigger the camera:
<input type="file" accept="image/*">
When the visitor selects 'Open Camera', there is no way to specify which camera is to be used and, in our testing, the iPad generally defaulted to the back camera and had to be flipped to the front camera (more frequently used in this type of kiosk use) using the button on screen.
You can block access to the photo gallery by enabling Restrictions on the device. The option to select from the gallery is still shown, but when selected shows a message that the app does not have permission to access the gallery. To enable this:
- Open iOS settings
- Select General in the sidebar
- Select Restrictions
- Select Enable Restrictions
- Under Privacy, select Photos
- Select Don't Allow Changes.
If the device is signed in to iCloud (as it generally is by default following an update of the iOS operating system), the option to 'Add from iCloud' will also be shown. So far in our testing, signing out of iCloud on the device removes this option.
This means that when using the HTML 5 Media Capture API there is no way to pick the device's front camera by default or to prevent the 'Add from Gallery' option and select which camera to use.