Imagine an iphone application that automatically registers users when they first start up according to their phone identifier (for example, phone number *) in the server database. Subsequently, users should see which of their friends are already using the application, that is, which of their contacts are registered in the database. The obvious solution would always be to send a selection request to the database containing all user contacts, each time the user updates his friends list. As a result, the user receives a list of registered contacts (friends). Is there a better way to implement this synchronization between user management on the server and contacts in the user's address book.Sending multiple selection requests (each user for each update) using dozens of phone numbers may not be performed at all.
Example:
WhatsApp is actually a good example for this scenario. You can add new contacts to your address book, and WhatsApp will automatically update the list of WhatsApp friends according to your phone book. I really like this idea because the user does not need to create an account manually.
* I know about the problems of using phone numbers in AppStore applications, so this question really focuses on the architectural problem.
EDIT
this comment ( Whatsapp Contact Sync ) describes the simple approach mentioned. but is this really the smartest way?
source
share