Skip to content

Camera saving images to gallery on 3.2.1 despite saveToGallery being false #86

Open
@mast3rd3mon

Description

@mast3rd3mon

Android v7.0.0
Real device - LG G5
nativescript - 3.3.0
tns-core-modules - 3.3.0
tns-android - 3.3.0
nativescript-camera - 3.2.1

I request the permissions at the end of the ngOnInit(), i then click a button to call takeImage() which is as follows

takeImage() {
    cameraModule.takePicture({
        width: 100,
        height: 150,
        keepAspectRatio: true,
        saveToGallery: false
    }).then(imageAsset => {
        imageSource.fromAsset(imageAsset)
            .then(res => {
                this.displayPicture(res);
            }).then(
            () => {
                //Do code to display new elements
            })
    });
}

Currently only tested on android but not on ios

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions