ti8m/DocumentHandler

Does not work with Android 7.0

Opened this issue · 2 comments

I tried in most of the devices, they are working fine, but does not work with Android 7.0.
App simply stops and user get thrown out of App.
Does it tested with OS 7.0

In my project Android manifest I have set the target as 25

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />

Can some one help me in this?

I actually came across this issue and worked to find the root cause. Android 7 no longer accepts the file:// schema as the "data" for Intents, and now requires content:// instead. The code needs to be updated to use FileProvider instead, specifically, this line. In the meantime, a quick fix is to set android:minSdkVersion="23" since this fails past 24. If someone could update when this will get fixed, that would be great.

http://stackoverflow.com/questions/38200282/android-os-fileuriexposedexception-file-storage-emulated-0-test-txt-exposed?noredirect=1&lq=1

https://github.com/PolarCape/polarcape-cordova-plugin-document-handler
This plugins branch is 56 commits ahead of ti8m:master.