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

resolveLocalFileSystemURL cannot handle url returned by contacts plugin

    XMLWordPrintableJSON

Details

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

    Description

      navigator.contacts.pickContact returns photo url like content://com.android.contacts/contacts/1/photo, which cannot be resolved by resolveLocalFileSystemURL with FileError code: 1000. I inspect code in the ContentFileSystem.java, and find the method resourceSizeForCursor cannot return correct value. The problem is, that cursor doesn't have a column named _size. I have given permission of File and Contacts.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zyf0330 zhuisui
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: