cordova-open icon indicating copy to clipboard operation
cordova-open copied to clipboard

Plugin isn't working in Android OS 7.0

Open Krishna25Vrinsoft opened this issue 7 years ago • 10 comments

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.

Krishna25Vrinsoft avatar Jul 26 '17 05:07 Krishna25Vrinsoft

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?

vasuvuggu avatar Jan 31 '18 10:01 vasuvuggu

I am also facing the same problem. Is there any update on the resolution?

Vinoth18 avatar Feb 06 '18 06:02 Vinoth18

you can modify the source code to adapt to android 7.0 or higher.

lovefly0326 avatar Jul 03 '18 07:07 lovefly0326

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.

Owlbertz avatar Aug 06 '18 11:08 Owlbertz

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 avatar Aug 06 '18 12:08 lovefly0326

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

Owlbertz avatar Aug 06 '18 12:08 Owlbertz

Sorry,I don't know @Owlbertz

lovefly0326 avatar Aug 06 '18 12:08 lovefly0326

This was fixed in #55 and made it to develop branch. But never made it to release

adrianjarc avatar Apr 15 '19 10:04 adrianjarc

This is released now #63 in 1.1.1

disusered avatar Apr 15 '19 22:04 disusered

Thanks

adrianjarc avatar Apr 16 '19 05:04 adrianjarc