barcode-scanner icon indicating copy to clipboard operation
barcode-scanner copied to clipboard

Detect supported platform.

Open iBobik opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Our app could be used on old or strange devices without camera or supported API. It his situations app should hide reader feature.

Describe the solution you'd like I would like to use method like isSupported(): boolean. This should not trigger permission dialog.

Describe alternatives you've considered I could dive into APIs behind this plugin and try to check it for every platform, but I am not sure how difficult it will be and if I will cover it correctly.

iBobik avatar Apr 20 '23 15:04 iBobik

I am not sure if isSupported is the right term in this case. Maybe it would make sense to somehow implement something like getCameras and even allow the devs to set a specific camera if required.

But I need to check if this is even possible if you have no permission, not sure about this to be honest...

thegnuu avatar May 08 '23 15:05 thegnuu