Abrissirba opened a new issue #779:
URL: https://github.com/apache/cordova-plugin-camera/issues/779


   # Bug Report
   
   ## Problem
   Android SDK 30 requires you to define which other apps you app want to 
communicate with. This can be done by adding the following to config.xml
   
   ```
   <config-file parent="queries" target="AndroidManifest.xml">
       <package android:name="<name of package>" />
   </config-file>
   ```
   
   
   ### What is expected to happen?
   When I run add platform I expect to get one queries element in 
AppManifest.xml
   
   
   ### What does actually happen?
   I get two elements. One is the one I added myself in config.xml and the 
other is comming from plugin.xml in cordova-plugin-camera.
   
   
   ## Information
   Introduced here: 
https://github.com/apache/cordova-plugin-camera/commit/abfbbd35d570f8bf60c3bcaa5a930cb74fdb5eac.
   
   I have tried to manually edit the plugin.xml file locally to this and 
confirmed that it works
   
   ```
   <config-file target="AndroidManifest.xml" parent="queries">
                   <intent>
                       <action 
android:name="android.media.action.IMAGE_CAPTURE" />
                   </intent>
                   <intent>
                       <action android:name="android.intent.action.GET_CONTENT" 
/>
                   </intent>
                   <intent>
                       <action android:name="android.intent.action.PICK" />
                   </intent>
                   <intent>
                       <action android:name="com.android.camera.action.CROP" />
                       <data android:scheme="content" 
android:mimeType="image/*"/>
                   </intent>
           </config-file>
   ```` 
   
   
   ### Command or Code
   cordova platform add android
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   
   
   ### Version information
   [email protected]
   "cordova-android": "^10.1.1",
   10.0.0 ([email protected])
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x ] I searched for existing GitHub issues
   - [ x] I updated all Cordova tooling to most recent version
   - [ x] I included all the necessary information above
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to