Skip to content

Error: Uncaught (in promise): null #60

Open
@ghost

Description

I insert latest nativescript-camera plugin
tns 3.2.1
typescript: 2.4.2
device htc 626

public takePicture() {
        if ( isAvailable() ){
            takePicture( { width: 300, height: 300, keepAspectRatio: false, saveToGallery: true } )
                .then(picture => {
                    console.dir(picture);
                    this.cameraImageSrc = picture;
                }).catch((err) => {
                //console.log("Error -> " + err.message);
            });
        }
    }
<Image row="1"
                           [src]="cameraImageSrc"
                           stretch="aspectFit"
                           margin="10"
                           width="200"
                           height="200"></Image>

I get this console:
Error: Uncaught (in promise): null

ActivityManager: START u0 {act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.htc.camera/.CameraServiceEntry clip={text/uri-list U:content://hu.neosoft.praktiker.provider/external_files/DCIM/Camera/NSIMG_20171016_15427.jpg} (has extras)} from uid 10268 pid 28769 on display 0

Please help me what is wrong my code?

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