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.
source to share
Only numbers with seven or more digits are parsed as phone numbers from 6.0.1:
Armed with this knowledge, we can add a zero-width space ( \u200B
) to every sixth digit:
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
.
source to share
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.
source to share