nadeeth commented on issue #744:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/744#issuecomment-1284905333

   I had the same issue in production builds. Fixed by adding this inside the 
"<platform name='android'>" section of the plugin xml. It will add this 
provider meta-data to AndroidManifest.xml in the build time. 
   
   `<config-file parent="/manifest/application" target="AndroidManifest.xml" 
xmlns:android="http://schemas.android.com/apk/res/android";>
               <provider 
android:authorities="${applicationId}.fileOpener2.provider" 
android:exported="false" android:grantUriPermissions="true" 
android:name="io.github.pwlin.cordova.plugins.fileopener2.FileProvider">
                   <meta-data 
android:name="android.support.FILE_PROVIDER_PATHS" 
android:resource="@xml/opener_paths" />
               </provider>
               <provider 
android:authorities="${applicationId}.cordova.plugin.camera.provider" 
android:exported="false" android:grantUriPermissions="true" 
android:name="org.apache.cordova.camera.FileProvider">
                   <meta-data 
android:name="android.support.FILE_PROVIDER_PATHS" 
android:resource="@xml/camera_provider_paths" />
               </provider>
           </config-file>`


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