mobileGetContactData

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: mobileGetContactData

Post by giovanni_c » Sat Jan 18, 2014 10:03 am

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!

magixbox
Posts: 11
Joined: Sat Feb 22, 2014 8:53 am

Re: mobileGetContactData

Post by magixbox » Sat Feb 22, 2014 9:00 am

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.

dazza the stag
Posts: 44
Joined: Sat May 17, 2014 1:48 pm

Re: mobileGetContactData

Post by dazza the stag » Tue Jun 03, 2014 7:46 pm

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

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: mobileGetContactData

Post by trags3 » Tue Oct 20, 2015 3:19 pm

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: mobileGetContactData

Post by Simon » Wed Oct 21, 2015 12:46 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: mobileGetContactData

Post by trags3 » Wed Oct 21, 2015 1:12 am

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

Post Reply