Ionic: Camera asks confirmation after every picture / take multiple shots
Asked Answered
P

1

7

Is it possible to disable those annoying "retry" and "ok" buttons from top of the display? I can also customize ngCordova plugin if you guide me to a correct direction.

What I want to do is to take multiple shots easily. Now it takes time, because someone have invented that one should confirm if picture is good enough. So another questions is what is suggested way to take multiple pictures and then confirm all of them.

Both of the following lines give same result:

navigator.camera.getPicture()

or

$cordovaCamera.getPicture()

Annoying retry and ok -buttons

Punctilious answered 15/11, 2016 at 11:43 Comment(7)
Did you find any solution for this? I want to hide this 2 buttons..Bristle
Hi! Any update on this? i want to skip this confirmation stepIndiraindirect
I found that adding intent.putExtra("android.intent.extra.quickCapture", true); should work in the plugin but its not working for me, did you find anything??Babette
@SaurabhUdaniya not yet, i need to try that option also. Thanks!Punctilious
Do we have any solution for this?Jobe
@Jobe havent tried yet :)Punctilious
Still no solution in 2020 on Android?Immortalize
H
5

I also had the same requirement for one of my apps.

Here you go

https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview

This plugin exposes a method takePicture() which you will be able to call continuously and get all the pictures into an array or something that you wish.

Go through the plugin documentation for more details on implementation.

For your reference, here is a sample app made with cordova-plugin-camera-preview

https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview-sample-app

To answer your question, the best way of allowing the users to confirm the pictures, I would suggest you that first let user capture as many pictures they want, then you display them in a gallery view, where they can tap on a picture - they will see two options 1.Replace photo 2.Delete photo.

This way, users will have a good user experience.

Hyades answered 19/2, 2018 at 13:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.