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

Delay in returning control to the Webview increases in duration based on selected image file size

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-camera
    • Environment:

      Android: OS 7.0, Phone Model: Moto G5 Plus
      iOS: OS 10.1.1 (14B150)

    • Flags:
      Important

      Description

      ISSUE
      Selecting a large image through the plugin creates a delay before returning control to the Cordova app which uses the plugin

      Current Behavior

      1. Selecting a large image (in filesize) through the plugin creates a delay before returning control to the Cordova app which uses the plugin. This includes both:
        • Camera capture
        • Image gallery
      2. This delay increases in a linear fashion with the filesize of the selected image

      Expected Behavior

      1. Selecting an image should:
        • Return control immediately to the Cordova app which uses the plugin
        • Continue the data transfer of the image to the Cordova app in a background thread
        • Include a callback function to indicate that the data transfer of the image to the Cordova app is complete
      2. This includes both:
        • Camera capture
        • Image gallery
      3. All image file sizes should return control to the Cordova app which uses the plugin at the same speed including:
        • 5MB image
        • 11MB image
        • 15MB image
        • 20MB image
        • 40MB image
      1. # Platforms affected
        • Android
        • iOS

      REFERENCES

      1. Here are sample test images:

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ShemrickFlannigan Shemrick Flannigan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: