mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

The mobile_scanner plugin for web doesn't implement the method 'updateScanWindow'

Open thomtomdup opened this issue 2 years ago • 9 comments

Hello.

When i changed the permission of camera denied to autorised i have this error in console :

Error: PlatformException(Unimplemented, null, The mobile_scanner plugin for web doesn't implement the method 'updateScanWindow', null)

Can you tell me if it's normal ?

Thank you.

thomtomdup avatar Feb 13 '23 14:02 thomtomdup

any solution?

bhanuka96 avatar Feb 26 '23 11:02 bhanuka96

Same error message here. Error also seems to occur when disposing a page with MobileScanner widget in it.

(only in web of course :-))

CorjanBos avatar Feb 28 '23 12:02 CorjanBos

Is there any solution for this? (seeing this error in web)

philitell avatar Mar 16 '23 14:03 philitell

I am getting the same error on the web, works fine on mobile... any solutions?

ceecee-h avatar Mar 20 '23 20:03 ceecee-h

_methodChannel.invokeMethod('updateScanWindow', {'rect': data});

This invokes native methods inside kotlin and switf where we have updateScanWindow methods but web doesn't.

@juliansteenbakker would @ribeiro-gabriel proposition to opt-out conditionally of this callback on web platform be enough ? Is the underlying JS library supposed to acknowledge this method call ? 🙏

Amphaal avatar Mar 28 '23 10:03 Amphaal

I am also getting the same error when click on the back arrow in the app bar.

masim302 avatar Apr 24 '23 21:04 masim302

This was implemented to ignore the scan window on the web, since ZXing does not provide the size of the barcode. So the crash should no longer occur.

We could however, decide to make a rectangle with the points of the barcode and do an intersection.

navaronbracke avatar Mar 05 '24 10:03 navaronbracke