onClick Barcode scan in Ipad

Hi,
We are on Ignition 8.0.15 and trying to set up barcode scanning in Perspective on an Ipad mini 4. We followed the example under Perspective session event scripts on the ignition website but the button is not doing anything (not even asking to use camera etc.), are we missing anything?
Thanks