on IOS, format is ignored
luismarcilio opened this issue · 8 comments
Hello. Thank you for the package, in first place.
I noticed that it does not pass the format parameter to IOS barcode scanner, here
It would be much appreciated if you could fix that in a future release.
Thanks.
@luismarcilio Did you find any workaround about that ?
@luismarcilio Did you find any workaround about that ?
No. I forked the code and forced the format I needed and used it from my fork.
You can have a look at it here:
@luismarcilio First thanks for your quick answer.
Do you think there could be any way to use the provided formats list. For exemple using the options parameter ?
I use many formats in my app and it's mandatory for me.
@luismarcilio First thanks for your quick answer.
Do you think there could be any way to use the provided formats list. For exemple using the options parameter ?
I use many formats in my app and it's mandatory for me.
You can try to fix it. Check the java code in android directory. It seems well written.
You can get more information in Google's documentation: https://developers.google.com/ml-kit/reference/swift/mlkitbarcodescanning/api/reference/Classes/BarcodeScanner
If you fix it, you could contribute and make a pull request to package.
Hey guys! Sorry, I really haven't had any time to work on this plugin for a while, but if you do a PR I'll merge it ASAP. Otherwise if you can wait until November I'm going to have a lot more time then so I should be able to get to things like this!
I also have a need for this to work in both iOS and Android. I am willing to help test the fix if some one has this working.
Hey guys! Sorry, I really haven't had any time to work on this plugin for a while, but if you do a PR I'll merge it ASAP. Otherwise if you can wait until November I'm going to have a lot more time then so I should be able to get to things like this!
Hello, I did a PR to solve this issue, it worked for me, I hope it helps. (#188)
Tested on iPhone XR