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

iOS cancel action throws "has no access to assets" instead of "No Image Selected" error

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-camera
    • None
    • iOS

    Description

      When cancelling action of getting image from photo library, an error "has no access to assets" is being returned instead of "No Image Selected"

      Using simple call like that:

      navigator.camera.getPicture(function () {
          console.log('Success');
      }, function (error) {
          console.error(error);
      }, {
          sourceType: Camera.PictureSourceType.PHOTOLIBRARY
      });
      

       This works properly using Camera capturing

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            aszmyd Adam Szmyd
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment