Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In a project I am making with cordova-plugin-camera on android 7.0 I get the following error while trying to call camera: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.comland.mightyfields.eg/cache/.Pic.jpg exposed beyond app through ClipData.Item.getUri(). The application has rights to access file storage and camera but once camera is being called nothing happens and android monitor catches this error (full log found in attached file log.txt)
Problem doesn't happen if do 'ionic run android' but once I upload and install apk build with ionic build android this problem starts appearing.