Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android][Android 9 - API 28][Photo Capture confirmed screen requires to click multiple times on OK button] #241

Open
misostack opened this issue Mar 10, 2020 · 0 comments

Comments

@misostack
Copy link

Hello guys, the plugin works very well on IOS. But i got this issue.
After user take the photo, it requires to click multiple times on "OK" button to comeback to the app screen. This is bug or is there any ways to go through. Thank you guys.

This is my implementation based on the official doc.

  onTakePhoto(){
    const options : camera.CameraOptions = {
      width: 250,
      height: 250,
      keepAspectRatio: true,      
      saveToGallery: false,
      allowsEditing: false,  
      /**
       * The initial camera. Default "rear".
       * The current implementation doesn't work on all Android devices, in which case it falls back to the default behavior.
       */
      // cameraFacing: "front" | "rear"      
    }
    camera.takePicture(options).then(
      imageAsset => {
            const source = new ImageSource();
            console.log("Result is an image asset instance", imageAsset);
            source.fromAsset(imageAsset).then(source => {
               let fingerImage = <Image>this.fingerImageRef.nativeElement;
               fingerImage.imageSource = source;          
            })
      }
      ).then( err => console.log(err))  
    return;
  }

Link Image : https://pasteboard.co/IYqbkLx.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant