expo-barcode-scanner is deleting null characters?

  1. SDK Version: “expo”: “38.0.8”
  2. Platforms: IOS

It seems that a while ago the barcode scanner on expo had a problem in ios where barcodes with null characters were truncated, this seems to have been resolved, but now my problem is that these null characters are eliminated or replaced.

while on android scanning a PDF417 barcode produces this data:

0328840902����������������������������PubDSK_1����������������37320…

The same code scanned on IOS produces:

0328840902PubDSK_137320…

As you can see, the � characters are gone on IOS. I need those characters there since that is what I am using as limits to parse the data on the code, these are national ID cards. So I cannot use other characters.

I am doing everything as per the documentation here: https://docs.expo.io/versions/latest/sdk/bar-code-scanner/#api

I don’t really want to post a photo of my id online and have been unable to produce a pdf417 code with those characters.

I appreciate your help and your time in helping me.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.