Closed vovikdrg closed 6 years ago
I solved my problem by
Defining xml file
resources/xml/provider_paths.xml
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="."/>
<files-path name="files" path="."/>
</paths>
Then inside config.xml > platform android insert
<resource-file src="resources/xml/provider_paths.xml" target="res/xml/provider_paths.xml" />
After some reading its possible to add this to be part of plugin https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#resource-file
I can try to do pull request if you want
Duplicate of #40
It seems that your pull request did not fixes since i am on "cordova-plugin-app-update": "^1.3.11",
@vovikdrg it's very appreciate for your pull request
solution provided by vovikdrg works for me.
I am getting error
platforms\android\build\intermediates\manifests\full\armv7\debug\AndroidManifest.xml:55: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/provider_paths').
<provider android:name="com.vaenow.appupdate.android.GenericFileProvider" android:authorities="com.vaenow.appupdate.android.provider" android:exported="false" android:grantUriPermissions="true" > <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
cli packages: (C:\Projects\flymark-offline\flymark-judging\node_modules)
global packages:
local packages:
System:
Misc: