afriscic / BarcodeScanning.Native.Maui

Barcode scanning library for .NET MAUI
https://www.nuget.org/packages/BarcodeScanning.Native.Maui
MIT License
162 stars 31 forks source link

ByteValue is diffrent on iOS #84

Open SigiNeumann opened 1 month ago

SigiNeumann commented 1 month ago

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.