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

Persistent path different from 3.7.0 to 4.0.2 (Phonegap 5.1.1)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.1.0
    • None
    • None
    • HTC One M7 / Android 5.0.2

    Description

      Config.xml

      <preference name="android-installLocation" value="internalOnly" />
      <preference name="AndroidPersistentFileLocation" value="Internal" />
      <preference name="iosPersistentFileLocation" value="Library" />

      window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){});

      Version 3.7.0

      FS: fileSystem.root.toURL(): file:///data/data/com.myapp.app.myapp/files/files/
      FS: fileSystem.root.toInternalURL(): cdvfile://localhost/persistent/
      FS: fileSystem.root.nativeURL: file:///data/data/com.myapp.app.myapp/files/files/

      Version 5.1.1

      FS: fileSystem.root.toURL(): file:///storage/emulated/0/
      FS: fileSystem.root.toInternalURL(): cdvfile://localhost/persistent/
      FS: fileSystem.root.nativeURL: file:///storage/emulated/0/

      window.resolveLocalFileSystemURL('cdvfile://localhost/persistent/', function(oEntry){})

      Version 3.7.0

      nativeURL: "file:///data/data/com.myapp.app.myapp/files/files/"

      Version 5.1.1

      nativeURL: "file:///storage/emulated/0/"

      This is currently breaking links to existing data, any ideas?

      Attachments

        1. cordova-5-config2.xml
          11 kB
          Matthew Horn

        Issue Links

          Activity

            People

              Unassigned Unassigned
              weaponx86 Matthew Horn
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: