You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/01 13:53:19 UTC

[GitHub] matheusgrieger opened a new issue #270: FileUriExposedException on Android 7+

matheusgrieger opened a new issue #270: FileUriExposedException on Android 7+
URL: https://github.com/apache/cordova-plugin-file/issues/270
 
 
   So we have recently seen that Google will block updates from apps with `targetSdk` < 26. Our apps currently use SDK 23, which works fine. Since then, we were trying to update to Target SDK 26 and comply with Google's definition.
   
   However this plugin does not work with SDK 24+, since it requires you to use `content://` addresses instead of `file:///`. I have tried to find some replacement and updated the plugin to version 6.0.1, but to no avail.
   
   We are also using `@ionic-native/file`, which basically just wraps `cordova-plugin-file` and adds type definitions.
   
   Whenever we try to copy a file to `cordova.file.externalApplicationStorageDirectory` the app crashes, closes, due to a `FileUriExposedException` from `ClipData.Item.getUri()`.
   
   Is there any solution to this?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org