Hi everyone!
I use this topic to ask if there is a way to have a list of contact IDs to read all the contacts of the device.
As the mobileGetContactData is an "expensive" operation I think it's not a good thing to read in a loop even if a specified contact ID is not present.
Searching on dictionary I haven't found nothing about a list of contact IDs.
Thank you very much!
mobileGetContactData
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: mobileGetContactData
While playing with mobile contact, I too noticed something missing:
- mobileFindContact lacks of support for Unicode. While the sample stack used a scan method to find for name that consist of "a" to "z", it is insufficient to lookup the entire address book if any of the records consists of Chinese (or Unicode) character.
Scanning the entire contact database using the ID might be more reliable, but I can see that deleted ID is not reused, so there is problem to determine when to stop scanning...
Thank you.
- mobileFindContact lacks of support for Unicode. While the sample stack used a scan method to find for name that consist of "a" to "z", it is insufficient to lookup the entire address book if any of the records consists of Chinese (or Unicode) character.
Scanning the entire contact database using the ID might be more reliable, but I can see that deleted ID is not reused, so there is problem to determine when to stop scanning...
Thank you.
-
- Posts: 44
- Joined: Sat May 17, 2014 1:48 pm
Re: mobileGetContactData
Being very new to live code but always being up for a challenge I would like to be able to add a page to my app that will pull certain contacts through from the iPhone phonebook and display them in a list.
I thought initially that I could create a group in the phonebook and then pull through only those contacts within the group but when I posted a questions about this I didn't get any replies so I guess that is probably not yet achievable.
So maybe if I could use the command to search for a certain word with the "Company" field within the phonebook - would this work.
I don't mind working on it if someone thinks that it is doable - however what I don't want to do is spend ages trying to do something that is actually impossible !
Thoughts please
I thought initially that I could create a group in the phonebook and then pull through only those contacts within the group but when I posted a questions about this I didn't get any replies so I guess that is probably not yet achievable.
So maybe if I could use the command to search for a certain word with the "Company" field within the phonebook - would this work.
I don't mind working on it if someone thinks that it is doable - however what I don't want to do is spend ages trying to do something that is actually impossible !
Thoughts please
Re: mobileGetContactData
Simon, I am having problems with mobileGetContactData but only with contacts that came from MS Outlook. I know this thread is a couple of years old; but any chance Outlook was involved in the above discussion? I just used the mobile Contacts in an app for the first time and it works great unless the contact comes from Outlook.
Cheers
Tom
[edit]
By the way the mobileGetContactData crashes the app when an Outlook contact has been selected.
The program never gets past mobileGetContactData.
Tom
Cheers
Tom
[edit]
By the way the mobileGetContactData crashes the app when an Outlook contact has been selected.
The program never gets past mobileGetContactData.
Tom
Re: mobileGetContactData
Hi Tom,
You may be correct!
Yes, some of my contacts did come from Outlook, I never made the connection.
I wonder how to strip the data that screws it up?
Simon
You may be correct!
Yes, some of my contacts did come from Outlook, I never made the connection.
I wonder how to strip the data that screws it up?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: mobileGetContactData
The connection to Outlook really stood out to me as I only have 2 or 3 and they are very recognizable. Selecting any contact other than those works great. Selecting any one of the 3 crashes the app.
I wish I knew how to strip the data that screws it up. I was planning to utilize the mobilePickContact in an app for a company that uses Outlook and all of the potential clients in the company sync their desktop contacts with their mobile contacts.
That's a problem.
Tom
I wish I knew how to strip the data that screws it up. I was planning to utilize the mobilePickContact in an app for a company that uses Outlook and all of the potential clients in the company sync their desktop contacts with their mobile contacts.
That's a problem.
Tom