Description of my problem:
- I've a scanner button on my app. Clicking on it works fine.
- in the app I also display some modals and want to also be able to launch the scanner from a modal, i've tried a few things:
- add another Scanner button in the modal: it does not work fine: the scanner popup shows up, but no image is present - my supposition is that we can not have more than one scanner component in a single app (I also think that the scanner component is always "opened" even when the scanner button is not clicked: my mobile phone shows a system notification "this chrome site is using your camera" and the battery is drained very quickly).
- tried to trigger the main scanner button from a script, without success. I did not found any API to do that.