nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

(iOS) SaveToGallery doesn't work

Open ShawnPavel opened this issue 6 years ago • 4 comments

When executing the code below, the photo is still saved to the gallery.

this.cameraPlus.takePicture({ saveToGallery: false, confirm: true });

ShawnPavel avatar Mar 21 '18 15:03 ShawnPavel

@ShawnPavel If you set saveToGallery on camLoaded() it won't save.

camLoaded(e: any): void {
   this.cam = e.object as CameraPlus;
   this.cam.saveToGallery = false;
}

frey1esm avatar May 25 '18 21:05 frey1esm

It doesn't work on Android either. I set saveToGallery to false on camLoaded():

camLoaded(e: any): void {
    this.cam = e.object as CameraPlus;
    this.cam.saveToGallery = false;
    this.cam.debug = false;
  }

and in html:

<CameraPlus saveToGallery="false" height="auto" debug="false" galleryPickerMode="single" showFlashIcon="false"
      showToggleIcon="false" showCaptureIcon="true" confirmPhotos="false" showGalleryIcon="false" (loaded)="camLoaded($event)"
     (photoCapturedEvent)="photoCapturedEvent($event)"></CameraPlus>

klavdijav avatar Dec 19 '18 12:12 klavdijav

@ShawnPavel did you figure it out the issue. please share the solution. the same problem exists even in 2019 may

vikasacharya16 avatar May 12 '19 10:05 vikasacharya16

Hi. This works. Are you using nativescript+angular? nativescript+vue? let me know

mashinokatsumi avatar May 12 '19 11:05 mashinokatsumi