I have a Phonegap/Cordova app where the user needs to allow access to things like album or camera.
Assume you request the permission for camera on app start an the user denies. How can I check during the running app I the user gave the permission or not?
Is there a way to check if the app has the required permissions from within the app?
You can set permissions in the AndroidManifest.xml
You can check the permissions of your app by going to your Android Settings -> Apps -> App Name
Running adb logcat while the application is running would help you identify permission related errors
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.