nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

(iOS) SaveToGallery doesn't work #16

Open ShawnPavel opened 6 years ago

ShawnPavel commented 6 years ago

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

this.cameraPlus.takePicture({ saveToGallery: false, confirm: true });
frey1esm commented 6 years ago

@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;
}
klavdijav commented 5 years ago

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>
vikasacharya16 commented 5 years ago

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

mashinokatsumi commented 5 years ago

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