This repository has been archived by the owner on Oct 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 463
Binary data in QR codes on iOS #201
Comments
In case it helps anybody else, the binary data is available, at least in iOS 11 or later but not in the normal stringValue of the scanned code. In older ios versions, the data may be available but it is probably a bad idea to access it this way. By the way, I know C but not ObjectiveC so excuse any messiness...
|
Can you please provide an QR code which contains data with causes the problem? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
I'm using QR codes to transfer binary data. This does generally work if the encoding is set to ISO8859-1 in the QR code and the code reading library respects this (not all do).
Using barcode_scan on Android, the returned string is an exact binary copy of the QR code and the bytes can be accessed with .codeUnits which is perfect.
On iOS however, the returned string is truncated at the first null byte as if at some point it is being treated as a 'C' string where 0x00 terminates the string.
The current git master branch behaves the same.
It's not a normal use case I know but it would be great if the behaviour was the same on iOS as Android.
I'm happy to look into the source code but could do with some pointers about where to look. Also, I have no idea how to debug the calls into the iOS code from AndroidStudio...
Any help would be much appreciated !
The text was updated successfully, but these errors were encountered: