Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ByteValue is diffrent on iOS #84

Open
SigiNeumann opened this issue Jul 31, 2024 · 1 comment
Open

ByteValue is diffrent on iOS #84

SigiNeumann opened this issue Jul 31, 2024 · 1 comment

Comments

@SigiNeumann
Copy link

An observations which I yet did not had time to investigate deeper.
Scanning the same QRCode on Android vs iOS results in the same RawValue but different RawBytes.
Example:
RawValue Android:
angel:ADBgmIQAN16zdQUn7FH7zKE0aGwCaW8z9DCTLtnq99JpQ+MZnSooiiItMnizzAP6Jwo5hCHbzVNumwS6i1QlRgOOAnACHdsY6QzHnRV1D3FZstEJ1hQ6+G48hNDl1yxtAfLv39j3g==
RawValue iOS:
angel:ADBgmIQAN16zdQUn7FH7zKE0aGwCaW8z9DCTLtnq99JpQ+MZnSooiiItMnizzAP6Jwo5hCHbzVNumwS6i1QlRgOOAnACHdsY6QzHnRV1D3FZstEJ1hQ6+G48hNDl1yxtAfLv39j3g==

RawBytes Android:
61-6E-67-65-6C-3A-41-44-42-67-6D-49-51-41-4E-31-36-7A-64-51-55-6E-37-46-48-37-7A-4B-45-30-61-47-77-43-61-57-38-7A-39-44-43-54-4C-74-6E-71-39-39-4A-70-51-2B-4D-5A-6E-53-6F-6F-69-69-49-74-4D-6E-69-7A-7A-41-50-36-4A-77-6F-35-68-43-48-62-7A-56-4E-75-6D-77-53-36-69-31-51-6C-52-67-4F-4F-41-6E-41-43-48-64-73-59-36-51-7A-48-6E-52-56-31-44-33-46-5A-73-74-45-4A-31-68-51-36-2B-47-34-38-68-4E-44-6C-31-79-78-74-41-66-4C-76-33-39-6A-33-67-3D-3D

RawBytes iOS:
71-A4-91-61-6E-67-65-6C-3A-41-44-42-67-6D-49-51-41-4E-31-36-7A-64-51-55-6E-37-46-48-37-7A-4B-45-30-61-47-77-43-61-57-38-7A-39-44-43-54-4C-74-6E-71-39-39-4A-70-51-2B-4D-5A-6E-53-6F-6F-69-69-49-74-4D-6E-69-7A-7A-41-50-36-4A-77-6F-35-68-43-48-62-7A-56-4E-75-6D-77-53-36-69-31-51-6C-52-67-4F-4F-41-6E-41-43-48-64-73-59

It is not randomly diffrent there seems to be some additional bytes (71-A4-91) in the iOS cacse and then bytes missing at the end.

I can work with the RawBytes, so this workaround i valid for.
If I'm not the only one observing this, I could investigate deeper & maybe attempt a fix.

@afriscic
Copy link
Owner

Hello. Sorry for slow response.
This happens because there was a "workaround" in iOS that translated PayloadStringValue to byte[] using ASCII encoding and on Android you get the byte[] directly. This should get fixed in new release as we can now finally access PayloadData, but only on iOS/Catalyst versions > 17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants