Cordova Android app and user permissions -


i have android cordova app , i'm using gps, check network state, read/write on documents folder , taking camera pictures. here permissions on manifest xml file:

<uses-permission android:name="android.permission.access_coarse_location" /> <uses-permission android:name="android.permission.access_fine_location" /> <uses-feature android:name="android.hardware.location.gps" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.write_external_storage" /> 

the manifest file auto generated cordova framework. reason don't see camera permissions. permissions not asked @ installation time anymore (that's since android 6) instead should asked before usage. correctly gps access permission popup not read/write documents folder permission. never camera permission albeit i'm able use without ever being asked permission. same story network status permissions (never being asked).

i find android permissions scheme extremely confusing, under application manager app has got location , storage expected, camera , network status missing though.

to recap, inside app, on actual code, i'm using @ least once devices

  • gps fine grained
  • gps coarse (probably wifi ssid triangulation trick)
  • write on documents
  • read on documents
  • read network status (offline / wifi / 3g etc..)
  • take picture camera

cordova framework wrote manifest file:

  • android.permission.access_coarse_location
  • android.permission.access_fine_location
  • android.hardware.location.gps (why not .permission?)
  • android.permission.access_network_state
  • android.permission.write_external_storage

on application manager options:

  • location
  • storage

so 3 different sets of permissions :-(

i found in this cordova plugin mentioned in comments.

enter image description here

so somehow <uses-permission android:name="android.permission.camera/> have in code plugin can use it.

maybe didn't check right program see permissions, or if camera permission not shown in application permissions on device, can't able use camera in application. please check again because want know situation.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -