Hi to all,
I’ve done a custom Ionic plugin, who read and write a cripted file in the external storage file system on android device.
On android version < 6.0 (marshmallow) it works fine, but on Android 6.0.0 I have this error:
java.io.FileNotFoundException: /storage/emulated/0/Android/data/it.egaf/prefs.txt: open failed: EACCES (Permission denied).
In the config.xml plugin file I’ve specified some android permissions
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.Manifest.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.Manifest.permission.READ_EXTERNAL_STORAGE"/>
</config-file>
but the problem still remain …
Any suggests? What I’ve done wrong?
Thank you for any help.
Regards,
Michele