我使用twilio來分享我的用戶的聯繫信息。我一直這樣做了6個月沒有問題。iOS無法渲染vcf文件
最近,我開始接收錯誤報告,指出聯繫人卡片沒有通過。 iOS正在將其作爲未知附件接收,其文件名爲'text_0.x-vcard'[見屏幕截圖]
我無法在我的設備上重現此操作 - 我收到了來自用戶的報告iPhone 7,iPhone 6和iPhone 5 - 沒有任何一致。操作系統也沒有一致性。 vcf文件是有效的,並且適用於90%的用戶。
任何想法?這是一個vcf文件的例子 - 適用於我的手機,不適用於其他設備之一。
BEGIN:VCARD
VERSION:3.0
N:Doe;John;;;
FN:John Doe
ORG:Example.com Inc.;
TITLE:Imaginary test person
EMAIL;type=INTERNET;type=WORK;type=pref:[email protected]
TEL;type=WORK;type=pref:+1 617 555 1212
TEL;type=WORK:+1 (617) 555-1234
TEL;type=CELL:+1 781 555 1212
TEL;type=HOME:+1 202 555 1212
item1.ADR;type=WORK:;;2 Enterprise Avenue;Worktown;NY;01111;USA
item1.X-ABADR:us
item2.ADR;type=HOME;type=pref:;;3 Acacia Avenue;Hoemtown;MA;02222;USA
item2.X-ABADR:us
NOTE:John Doe has a long and varied history\, being documented on more police files that anyone else. Reports of his death are alas numerous.
item3.URL;type=pref:http\://www.example/com/doe
item3.X-ABLabel:_$!<HomePage>!$_
item4.URL:http\://www.example.com/Joe/foaf.df
item4.X-ABLabel:FOAF
item5.X-ABRELATEDNAMES;type=pref:Jane Doe
item5.X-ABLabel:_$!<Friend>!$_
CATEGORIES:Work,Test group
X-ABUID:5AD380FD-B2DE-4261-BA99-DE1D1DB52FBE\:ABPerson
END:VCARD
看起來它可能與蘋果的安全更新有關:https://support.apple.com/en-us/HT207482 – StephShelley