Skip to main content

Permissions | Flutter Document Scanner

Add camera permission

The Scanbot 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).

Starting with Android 6.0 (API level 23), you must implement permission requests and handle them at runtime. For detailed guidance on how to manage permissions, refer to the "permission_handler" package.

iOS (must be added in your Info.plist file)

Open your Info.plist file and add the NSCameraUsageDescription key. Provide a brief, user-friendly explanation of why your app needs camera access, such as: "Please allow camera usage to scan documents."

<key>NSCameraUsageDescription</key>
<string>Please allow camera usage to scan documents.</string>

For more details on requesting authorization to capture and save media, refer to the: Apple documentation.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?


On this page

Scroll to top