SureFox is a kiosk browser whose primary feature is to block the end-users from accessing any un-allowed websites.
A new feature has been implemented in Surefox, that lets the web apps read or scan barcode data from third-party apps such as Zxing. You can install the ZXing Barcode Scanner app for Android from the Google PlayStore. This application actually scans the barcode on behalf of your application.
Here is what you need to do:
1. Download the HTML Sample Fileon your laptop. Extract the file and copy it to the device.
2. Launch SureFox and access SureFox Settings
3. Tap on Allowed Websites, select file:// option and select the HTML Sample File
4. Tap on Browser Preferences and tap on Advanced Settings
5. Under Advanced Settings, enable Allow All Websites
6. Go back to Browser Preferences and disable Block Intent URLs
7. Go back to SureFox Settings screen and make sure Watchdog Service is disabled under SureFox Pro Settings
8. Tap on Done to complete and return to SureFox Home Screen
9. On SureFox Home Screen, tap on HTML Sample File to launch it
11. Tap on the Scan link to launch Zxing Barcode Scanner
12. Once the barcode is scanned, the result is passed to the parameter URL as shown below:
<html>
<head>
<title>Barcode Scan Test</title>
</head>
<body>
<h1>Barcode Scan Test</h1>
<br />
<a href="http://zxing.appspot.com/scan?ret=http://example.com?code={CODE}">Scan</a>
</body>
</html>
Note: If you want to allow only Zxing Barcode Scanner as allowed application, enable Watchdog Service under SureFox Pro Settings and allow Zxing Barcode Scanner as an Allowed Application.
You can learn more about SureFox here.