Scandit / scandit-capacitor-datacapture-core

0 stars 3 forks source link

Android Permissions on App startup #3

Closed aaronbach closed 2 years ago

aaronbach commented 2 years ago

At the moment I see no possibility, to handle the Camera Permission Request myself for Android. So when I open the App, which uses the Scandit Capacitor Plugin, I always get the Permission Dialog of Android because of this line: https://github.com/Scandit/scandit-capacitor-datacapture-core/blob/master/android/src/main/java/com/scandit/capacitor/datacapture/core/ScanditCaptureCoreNative.kt#L163

Please Support, that we can trigger this message ourself, or handle the permissions on the first scan.

ScanditSupport commented 2 years ago

Hi @aaronbach,

Please note that it was developed this way to keep our Capacitor SDK in line with the Cordova one. I have passed this point internally to include it in our planning for upcoming releases.

I am afraid there is no workaround for this currently as it would require modifying the plugin itself.

In case you have more detailed questions, please feel free to reach out to us directly: Submit a request – Frequently Asked Questions (FAQ)