Having problem scanning a barcode. When it scans the app shutsdown and restarts Camera is activated with this:
{
Scanner::scan()
->prompt('Scan a barcode')
->formats(['all'])
->id('toolbar-scanner');
}```
And listened to with this:
``` #[OnNative(CodeScanned::class)]
public function barcodeScannedWithCamera($data, $format, $id = null): void
{
Dialog::toast("Scanned: {$data}");
}```
The same result happens even if I use a single format not just `all`.
I have tested this on Pixel 8 (Android 16) and a Zebra TC22 (Android 13) and the same result happens on both.
I've tried to extract some info from `logcat` which I think is relevant and attached to this.
Thanks.