Permissions
Add camera permission
The Scanbot Barcode Scanner SDK needs access to the device camera so it can scan from a live camera stream.
Android (must be defined in the AndroidManifest.xml
file.)
<manifest xmlns:android="http://schemas.android.com/apk/res/android" ...>
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<application ...>
Note how we also added the uses-feature
tag for better recognition of your app on the Google Play Store (see more).
Since Android 6.0 (API level 23) you also have to implement a suitable permission requesting and handling at runtime. For more details please see the official Android docs "Request App Permissions".
iOS (must be added in your Info.plist
file)
<key>NSCameraUsageDescription</key>
<string>Provide access to the camera to detect barcodes.</string>
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get your free Trial LicenseWhat do you think of this documentation?
What can we do to improve it? Please be as detailed as you like.