enisn/Xamarin.Forms.Contacts

Phone number issue in XF iOS

Opened this issue · 4 comments

This is how phone numbers appear...

<CNPhoneNumber: 0x10cef0e50: stringValue=+25471234567, initialCountryCode=(null)>

Is there something I'm missing? Is there some formatting needed to get the exact phone number?

On Android it works fine.

Im with same problem. Did you get it? Its a bug ?

I need to send my app to the store, but this error fu**d with me... lol

uysuy commented

I solved using this peace of codes:

if (Device.RuntimePlatform == Device.iOS) { for (int i = 0; i < contact.Count; i++) { if (contact[i]?.Number == null) continue; var spl1 = contact[i].Number.Split(":"); var spl2 = spl1[2].Split(","); var spl3 = spl2[0].Split("="); contact[i].Number = spl3[1]; } }

Is it possible to get a new nuget out with this fix?