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

Photo album pictures keep saving with saveToPhotoAlbum: false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cordova-plugin-camera
    • None
    • Android 6.0.1 / Moto G4 Play Harpia

    Description

      If getPicture is called right after another getPicture, the image continues on photo album even with the saveToPhotoAlbum: false.

      get cameraOptions(): CameraOptions {
          return {
            allowEdit: false,
            destinationType: this.camera.DestinationType.NATIVE_URI,
            encodingType: this.camera.EncodingType.JPEG,
            quality: 100,
            saveToPhotoAlbum: false,
            sourceType: this.camera.PictureSourceType.CAMERA,
            targetHeight: 800,
            targetWidth: 800
          };
      }
      
      public takePicture(): Promise<string> {
        return this.camera.getPicture(this.cameraOptions);
      }
      
      // From my component
      takePicture() {
        this.cameraService.takePicture().then(img => {
          this.addToGallery(img);
          this.takePicture();
        });
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rodineijf Rodinei Fagundes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: