android - Phonegap build: How to explicitly ask for permissions? -


i building hybrid app android , ios, , using phonegap build cli-5.2.0

i using camera plugin

<plugin name="cordova-plugin-camera" source="npm" spec="2.2.0" /> 

i have line specified in config.xml

<preference name="permissions" value="none"/> <feature name="http://api.phonegap.com/1.0/camera"/> 

and notice on android device, asks read/write access of usb storage. when using camera take photo, android doesn't ask permission , camera how works.

i want know how explicitly require camera permission on android prior app installation? need have because believe causing other bug related video functionality app has.

i have tried build without permission none line, did not make difference.

the way add config-file element. don't know why hard find.

<gap:config-file platform="android" parent="/manifest" mode="add">     <uses-permission android:name="android.permission.camera" /> </gap:config-file>   

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -