lucbelliveau / react-native-simple-contacts

Simple interface to iOS and Android contacts
MIT License
7 stars 5 forks source link

Not getting contacts in IOS device #2

Closed farrukh-hashmi closed 6 years ago

farrukh-hashmi commented 6 years ago

findContactByNumber not getting contact. Already test it with android and it is working fine in android but not getting contact in IOS device. Manual settings are verified. Getting 1 in response

U-day commented 6 years ago

I too get 1 in response on IOS. Would really appreciate a fix. Thank you.

lucbelliveau commented 6 years ago

only contacts with a "mobile" number were being returned, now all users will be returned... with number=mobile when possible, and the first available otherwise.

U-day commented 6 years ago

Testing in IOS 6s Plus simulator getContacts() returns all the contacts with mobile or phone. Testing in iPhone 5s with over 1600 contacts, getContacts() returns ONE contact who does not have a phone number. Still, both in the IOS simulator and iPhone, getProfile() and findContactByNumber(number) return the number 1.

U-day commented 6 years ago

Dear Luc,

Testing in IOS 6s Plus simulator getContacts() returns all the contacts with mobile or phone. Testing in iPhone 5s with over 1600 contacts, getContacts() returns ONE contact who does not have a phone number. Still, both in the IOS simulator and iPhone, getProfile() and findContactByNumber(number) return the number 1.

Would really appreciate a solution for this problem.

Thanks,

Uday

On 31-Jan-2018, at 7:57 PM, Luc Belliveau notifications@github.com wrote:

only contacts with a "mobile" number were being returned, now all users will be returned... with number=mobile when possible, and the first available otherwise.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/lucbelliveau/react-native-simple-contacts/issues/2#issuecomment-361947811, or mute the thread https://github.com/notifications/unsubscribe-auth/AblkeNx6iaO02cS8LhDnDC45JGpoTI9Dks5tQHg2gaJpZM4RUPWW.