Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13738

Cordova plugin camera error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-camera
    • 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.

      Attachments

        1. log.txt
          3 kB
          Adrian Jarc

        Activity

          People

            Unassigned Unassigned
            adrianj Adrian Jarc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: