cordova-open
cordova-open copied to clipboard
Plugin isn't working in Android OS 7.0
I can't open any document like pdf, doc, png in Android 7.0 OS. I got below Error code = "file:///storage/emulated/0/Android/data/APP_NAME/files/test.txt exposed beyond app through Intent.getData()"
Can any one help me.
Even for me opening pictures of jpg type , throwing error like Undefined error , this issue reproducing for android 7.0 version, and it works fine for ipad , can anyone have suggestions to resolve this in android?
I am also facing the same problem. Is there any update on the resolution?
you can modify the source code to adapt to android 7.0 or higher.
Same issue here. I found out that using content://
instead of file://
(see https://stackoverflow.com/a/40674771/9002500) causes the error to disappear, but after selecting the application to use the screen stays blank.
You can modify the source code to replace file:// with content:// to adapt to android 7.0 or higher, it's very easy.@Owlbertz
@lovefly0326 I did but as mentioned above that leads to the screen staying blank.
I went with setting the targetSdkVersion
back to 23
, which apparently also works.
Sorry,I don't know @Owlbertz
This was fixed in #55 and made it to develop branch. But never made it to release
This is released now #63 in 1.1.1
Thanks