Is there a way to disable the link to Passbook passes?

I'm working on a pass for a Passbook and we have a piece of data that is linked as a phone number, but it's actually a member number. Is there a way to specify that the reverse field in the pass should not be associated as a phone number? I would like to turn this off so that we can format our data correctly.

Thanks in advance.

+3


source to share


2 answers


Only numbers with seven or more digits are parsed as phone numbers from 6.0.1: pass test

Armed with this knowledge, we can add a zero-width space ( \u200B

) to every sixth digit: fix



It looks just fine. The only drawback is that the space separates the number when the user copies it and google search for example returns the results for 123456 789

as if it zero width space

were real space \u20

.

enter image description here

+6


source


Apple's data detection algorithms are quite aggressive and for the most part do a pretty bad job, especially for non-US addresses and phone numbers.

There is no key you can set in pass.json to turn off data discovery. The only way we've found to prevent number conversion is with the C # prefix.



# will also appear on the back of the aisle, but the number will not be converted.

Screenshot

+1


source







All Articles