You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/15 09:48:15 UTC

[GitHub] [cordova-plugin-camera] ankitjainOfficial edited a comment on issue #419: No camera permission in Android app.

ankitjainOfficial edited a comment on issue #419: No camera permission in Android app.
URL: https://github.com/apache/cordova-plugin-camera/issues/419#issuecomment-574580292
 
 
   @AmrAlmagic It's been a while, I think the solution was:
   
   Adding this to your `config.xml`
   
   ```
           <custom-config-file parent="/*" target="AndroidManifest.xml">
               <uses-permission android:name="android.permission.CAMERA" />
               <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
           </custom-config-file>
   ```
   
   And install this [package](https://github.com/dpa99c/cordova-custom-config#readme)
   
   
   I didn't need to make any changes to AndroidManifest directly.
   
   If everything works, you should see the following in `platforms/android/app/src/main/AndroidManifest.xml`:
   
   ```
   <uses-permission android:name="android.permission.CAMERA"/>
   <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org