Community Questions & Answers
Contaxts EXCP
Does Ti have a work-around for this: I have a Naxa 7" tablet running Android 4.1.1 that does NOT provide access to the Contacts module. It breaks with comment: "null Exception Pointer" when I try to acces Contacts: Does Ti provide a propetry...
Primary Key for E-Mail, Phone Number, ... in Contacts Database
Hello, iám searching a way where i can find the primary key of a existing e.g. phone number. My case: User save a contact with 2 phone numbers. One day later, there is a third phone number. How i can identify these phone numbers. In my app i need to...
iOS - Contact Profil Pictures
Hello there, iám searching on the web since this morning but i can´t find a documentation or something like that, where i can find a solution for my problem. I have an tableview with the names of contacts but i want the profil pictures on the left...
editable contacts-style list view?
Hi, I'd like to generate an iPhone contacts-like experience for my account settings screen so people can click on a listview item and edit the text inline (during which a remove button appears on the right side of the screen). I noticed that tableview...
Problem in adding the contacts in iPhone 5
Hi Everyone, I am trying to create contacts in address book. I am unable to create the contact. The strange thing is that , the contact is added to address book successfully in simulator. But when I try in iPhone it doesn't cant understand the reason ....
Android: How to Get Email From Person in Contacts?
I'm using the Ti.Contacts.showContacts method so the user can select a Person from the phone's contacts. Once the user gets the Person, I want to print out the Person's email addresses. If I put the following code in app.js and run the project on the...
Detect contacts who have installed a particular app
Hi, I would like to know whether (and how) this is possible using Titanium.. If I can detect who all from my contacts have installed a particular application, similar to WhatsApp? That is through my contacts list I can check who all have WhatsApp on their...
Ti.Contacts.save does not works with multivalue fields
I try to create the application for the contact synchronization on Android platform. I work with SDK 3.1 from nightly builds. I want to have a possibility to change contacts stored in contacts book. I wrote simple test as follows: ~~~ var ec=...
how to sync contacts from gmail account on button click in android ?
Hello everyone, I am developing android application with google api 2.3 and mobile sdk 1.8.2. in this application i need to sync contacts from my gmail accounts. so my question is can i sync contacts from my gmail if i have already logged in into gmail...
Contacts.getAllPeople doesn't find no-group contacts
Hello guys. I was wondering if someone of you experiences the same problem. I went through and wanted to check all my contacts on my android phone (Samsung Galaxy S3 / Android 4.1.2). I noticed that only those who got a group assigned (e.g. by skype or...
getAllPeople works only once
Hi all, I try to get all contacts with Ti.Contacts.getAllPeople and it works fine, but if I make some changes in my contacts go back to my app and open the view again, I dont have the last changes in it. So the question ist why and how to fix it!?
Ti.Contacts.getAllContacts() is cached?
Very curious, seems like the results of Titanium.Contacts.getAllPeople() is cached on first use within the app? So if I update a contact record in the global addressbook (while my app is running in background), the update can not be retrieved until I...
"Mail To" Contacts picker and functionality like iOS Email
Does anyone know how to reproduce the "Mail To" Contacts picker and functionality like iOS Email. The one that as you type the list of contacts shows up and when you pick one it puts the name in the textfield with a blue background? I would...
Contacts access in iOS 6
Dear readers, Can someone tell me what I'm doing wrong? I want to get contacts from an iOS device with iOS 6. I need to request authorization, but I never see the request popping up. From the first boot, it preforms only the first if statement, which...
Ringtone of contact
Is it possible to assign a ringtone to an existing contact via the Titanium API?
Titanium application crashes when mail composer is displayed after selecting the email property in contact details window
Hi all, I'm working on an Titanium application which displays the contacts in iPhone. When user selects the email property of the user, I'm displaying the email composer window. But my application is crashing and console displays: ~~~ Terminating...
Using Titanium.Contacts.showContacts many times on one View
Hi, I'm a newbie to the Titanium. I'm trying to fill in the list of people on the screen based on data selected by the user from his/her contacts. As a result I call Titanium.Contacts.showContacts whenever user wants to get the data from contact list. ...
Linked Contacts on Titanium
Hi! I'm searching how can i get the Linked Contacts of a Contact on the Addressbook with Titanium. With the last updates on IOS6 and with the integration with Facebook, the Addressbook contains a lots of users (original users and facebook users) so we...
Linked Contacts iOS 6
Hi, there is actually an API documentation for the linked contacts on iOS6? How do I know if I can edit a contact or not? When editing a facebook-contact the app crashes: [ERROR] Failed to set contact property note: The operation couldn’t be...
Contacts API doesn't support iOS6 "Unified" Contacts?
(Using Titanium-2.1.3 with iPhone 4 running iOS6) In the selectedPerson callback e.person is populated with the proper information of normal contacts, but for unified contacts its an empty object. Is there a workaround for this? thanks in advance!
replace string fails
Type: Mobile SDK:2.0.1 (04/12/12 16:33 999c68a) Platform iOS Device iOS simulator Host OSX 10.7.5 I am pulling data from the devices(iOS) contacts. The phone and email fields contain characters that I want to remove. I am trying to use the replace to...
Listen to Address book changes?
Is it possible to listen to device address book changes?
Titanium.Contacts.Person.phone not working !!
how can i know the contacts number, any number (mobile, fax, home , ... etc) it's very important for me thanks
Contact Authorization
I am having difficulty getting contact authorization to work in the simulator. It works fine on the device, but simulator always returns authorized and my app does not show up under privacy settings? I went through and reset location and privacy, which...
New Contact Authorization
So it seems after you ask the user for authorization to access contacts the first time... you can NEVER ask again. I have a switch in my app where the user can save the contacts in the app to their address book if they like. In the event they at one time...
Allow user to pick one of a contact's phone numbers
Hello, I currently display a contact picker on the iPhone via Titanium.Contacts.showContacts which enables me, once the user picks a contact, to retreive eg. the first mobile number of the selected contact: ~~~ Titanium.Contacts.showContacts({ ...
Ti.Contacts module broken?
Hey there, First of all: I've searched for the last three days to find a solution without asking, but unfortunately there are neither any similar posts nor a solution outside the q&a. I try to get my contacts and work their profile-data to fill a...
Is there a way to Search device contact by EmailId or Phone number to get the Image of the person
Hi, I want to display the image of a person from the device contacts if the email id that my app has matches with the any of the contact email's or phone number. Is there any way to acheive this in Titanium? Regards Praveen
Sort Contacts By Last Name
I simply need to sort a list of contacts by last name. I know about the `CONTACTS_SORT_LAST_NAME` property, but I have no idea how to use it. I found a sort of answer in Google, but it involved creating groups, which is something I'd like to avoid. So,...
Contacts selectedPerson returns empty Object: iPhone Latest Build
does anyone know what I could be doing wrong as a selected person only returns an empty object when selecting a contact via Ti.Contacts.show is there some magick that I am not doing? thanks
Get Google Contacts
I'm currently developing an application in Titanium for Android/iPhone. I'm looking for a way to connect to a Google Account and retrieve the contacts of this account. Is there any way this can be done? Thanks in advance!
Multiple contact No of Single Person
Hello Everyone, I am working on Contacts functionality and I want to fetch multiple contacts numbers of single person and displayed that person name and his / her multiple contact numbers in Table Row.. EX: Name : ABC Contact No : 1111 2222 ...
Is it possible to access facebook contact telephone number?
Is it possible to access facebook contact telephone number? I would like my app to be able to send sms to a user's facebook friend.
Ti.Contact.createContact creates nameless contact on iOS
I am trying to add a contact to the iOS addressbook. It works fine in the simulator the contact is added to the addressbook, but as soon as trying on the device, the method createContact is not properly finished. I don't get the alert message i've set for...
Unable to sort contacts
titanium mobile sdk 2.0 iphone sdk 5.1 Hi, I am currently struggling with sorting contacts. I am able to display all contacts but I am unable to sort them by firstname. I am using this: ~~~ var getContacts = Ti.Contacts.getAllPeople(); ~~~ I tried...
showContacts question for iPHONE, ANDROID
with the Titanium.Contacts.showContacts function. you pass it an array of fields to list. It returns a couple of properties: selectedPerson selectedProperty the function displays a tableview sorted by last name on iPHONE. Then transitions to detail...
IOS 5 and MS Exchange Groups
Does anyone know if / when Titanium will support reading MS Exchange groups? Thanks very much!
Lock the orientation of Titanium.Contacts.showContacts
Hi, I had using the Titanium.Contacts.showContacts(values); to display the contact list of iphone. How do i lock the rotation/orientation to only Ti.UI.PORTRAIT ? I had set the orientation to Ti.UI.PORTRAIT to App already: win.orientationModes =...
Contacts Twitter Handle
I'm accessing the contacts via Ti.Contacts.getAllPeople(). I need to get the Twitter handle if it exists, but I'm not seeing any accessor functions for that property nor that property listed on the...
getAllPeople... Titanium.Contacts.CONTACTS_SORT_LAST_NAME
var people = Titanium.Contacts.getAllPeople(); //Titanium.Contacts.CONTACTS_SORT_LAST_NAME I am trying to get the var people to return a sorted list of contacts. I did not find an example in KS. How can I return a sorted list of people by last name?
how do i get person details from selectedProperty
I have a small script that opens the contacts list and when you select a contact it pastes the details into a textarea, so far so good, and it works perfect on android. but on Iphone i get to the property (mobile) and i can select it but then i am only...
Contacts Module / undefined
Hi folks, I cant use Titanium.Contacts module . Am i download some module , package etc for using this ? development platform : iOs 4.2 Titanium Studio : 1.0.8.20111122221919 os : mac osx 10.6.8 here is my code : ~~~ var btnAddBuddy =...
Add an item to a multivalue
Hi there... I am attempting to extend a contact value. Creating a new contact as follows works fine : ~~~ var phone = {"main" : ['1234']}; e.person.phone = phone; ~~~ however when there is already data in the multivalue, I am unsure how to...
Putting blob image in imageView not working
Hi, I'm getting a contact from my contact list. The contact has an image and I'm trying to display that image on screen with the person image property (if I alert I see the it contains a TiBlob object). I read in the imageView documentation the the image...
Contact Address, How do you parse through the info
The contacts api can return an address. For example I am trying to get the info about the home address. I can't seem to parse through the object that is returned. It's not a JSON and it's not a table. How do I access the CITY or COUNTRY for example?...
Question regarding contacts
can i retrieve the phone number of the device
Contacts syntax
Hi, I try to save contacts to iPhone. The following code snippet kills the app and show error: ~~~ 2011-10-25 12:00:52.771 PrivateIslands[99092:207] : -[__NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance...
Contacts: Link to a contact Window in a the contacts app
I would like to have a button that when clicked opens up the contact in the contacts app. I can't seem to find the proper method in the API. I know how to retrieve all kind of info or open the picker but is there a way to make the contacts app open the...
Android: Window Fullscreen & navBarHidden Properties Affect showContacts Callback
I have an Android app where the window needs to be `fullscreen: true` and `navBarHidden: true`. The app uses the Ti.Contacts.showContacts API so the user can select a Person from the phone's contacts. I'm using the `selectedPerson` event handler to...
Regarding Titanium.Contacts
What I would like to do is press a button called "select contact" and it let them pick from their contacts, but only ones that have a value for SMS. Is this possible with the Titanium.Contacts part of the API, and if so, does anyone have a...