简体   繁体   中英

Add runtime permissions on on a Cordova/phonegap project on android marshmallow (API v23)

I am trying to add some runtime permissions like localstorage, camera, etc. in my cordova project on Marshmallow API 23, I have found some code on internet but I don't know where I should initialize the code.

I referred to this link :

https://developer.android.com/training/permissions/requesting.html

Here you go guys, I found an answer by myself.

We have new cordova plugin: Cordova/Phonegap Diagnostic Plugin:

Try this link : https://github.com/dpa99c/cordova-diagnostic-plugin-android-runtime-example

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM