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

Fix the NeedPermission code for the case when external media is not mounted in Android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-file

    Description

      Line 582 in FileUtils.java has:
      String[] allowedStorageDirectories =

      {j.getString("applicationStorageDirectory"), j.getString("externalApplicationStorageDirectory")}

      ;

      This would cause an JSON exception when "externalApplicationStorageDirectory" is not present, which happens when the external storage is not mounted in the device/emulator.

      Attachments

        Activity

          People

            rakatyal Raghav Katyal
            rakatyal Raghav Katyal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: