ShareFile icon indicating copy to clipboard operation
ShareFile copied to clipboard

Not woking in Android 8.0

Open yakobosagung opened this issue 6 years ago • 3 comments

Please help, i using your plugin in xamarin form. Your plugin success in Android 7.11 but when i run my application in Android 8.0. There aren't action.

yakobosagung avatar Nov 08 '18 10:11 yakobosagung

this is message from output

Plugin.ShareFile: ShareLocalFile Exception: Android.OS.FileUriExposedException: file:///storage/emulated/0/Android/data/com.companyname.myfile/files/Download/filethis.pdf exposed beyond app through ClipData.Item.getUri()

yakobosagung avatar Nov 08 '18 10:11 yakobosagung

You are right about android 8.0 and above does not show the share interface. In api 23 and api 25 I am unable to share. On these versions the interfaces show - but the files don't show up on google drive for instance. Are you sure the file is shared to the specified location in Android 7.11 by controlling it at the location?

Lelelo1 avatar Nov 12 '18 11:11 Lelelo1

PR to fix this issue

stepkillah avatar Nov 14 '18 19:11 stepkillah