Closed felpereira closed 2 years ago
this is in the documentation:
If you use the code above, you will find that it parses what the camera captures and returns what type it is, when I use it on iPhone it returns interleaved2of5 on android it doesn't recognize anything
I did some tests defining the type, and it didn't work either
hey @felpereira - the title of this issue is "interleaved2of5 does not work on Android" and I'm just pointing out that the docs indicate that this is expected behavior. is there something else that is the issue that is different from what is described in the title?
@brentvatne sorry, the description was fine for me. I'm really sorry
But it's exactly as commented, if I use the Minimal reproducible example and point the camera on a cell phone that has an android at an image that contains interleaved2of5, it won't recognize anything, neither itf14 nor interleaved2of5.
ah yeah the docs aren't so clear about this - you should use an itf14
barcode rather than interleaved2of5
if you need to support android
I tried using itf14, and I also tried using other forms. I've been trying for 2 days. did you get to test it?
@brentvatne I tried, in my example, which was made available in the documentation, it doesn't work
Summary
https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/
When I execute the code exemple from here in Android I can't read a interleaved2of5
but if I execute the same exemple in IOS it works perfectly
What platform(s) does this occur on?
Android, iOS
Environment
Version IOS: 15.3.1 Iphone 6s Plus
Version Android: 12 samsung s20Fe
Minimal reproducible example
Run lines below to create an expo application
npx create-expo-app my-app
cd my-app
Change
app.js
tothen i execute
expo start --android
orexpo start --ios