Confirmed users
398
edits
Line 17: | Line 17: | ||
For handling changing of |status|, the App should listen on ContactsManager::oncontactchange event. | For handling changing of |status|, the App should listen on ContactsManager::oncontactchange event. | ||
== Adding a Friend == | |||
Most communication Apps have their own contacts. The information in their contacts database are very similar. Basically, the user need only one copy of them. They don't want to maintain multiple copy of contacts. So, the user will keep all contacts in the database of Contacts API and forget contacts of communication Apps. But, communication Apps still maintain their-owned contacts for showing status of friends or for other purposes. So, the idea is to borrow the experience of mobile phone. When you ask your friend for phone number, you will call it at first to make sure the number is correct. Then, you create a new contact from call history. You select the number of your friend from call history and the phone will ask you what do you want to do. You ask the phone to add the phone number to contacts, then you pick up an existing contact or create a new one. The idea is to wake up Contacts App to handle the new friend account/address/or number when adding a new friend in a communication App. That is say, when the user add a friend in Skype, Skype will wake up Contacts App and tell it to record that account. Then Contact App will ask the user if he want to create a new contacts or add the account/address/or number to an existing contacts. | |||
The user can also initiate an action of adding a new Skype friend at Contacts App. The following description is a possible UX. | |||
* The user press on an existing contact. | |||
* Contact App ask the user what he want to do. | |||
* The user ask Contact App to add a new contact address for the contact. | |||
* Contact App ask the user what kind of address; Skype, Twitter, WhatsApp, ... etc. | |||
* The user ask Contact App to add a Skype address. | |||
* Contacts App wakes up Skype for adding a new friend. | |||
* The user add a new friend of Skype, and Skype will check if the account is valid. | |||
* If it is a valid account, and the peer, the friend, accept the request of adding as a friend. Then, add the address to the contact that the user choose to initiate the action. | |||
== Messaging API == | == Messaging API == |