Whatsapp contacts synchronization [closed]

痴心易碎 提交于 2019-12-22 18:40:18

问题


How whatsapp in Android checks which contacts in your address book have installed the application? I have to create an application that requires this type of contact synchronization.


回答1:


I have a simple approach for this but i'm not pretty sure. Possibly, when a user registers his/her account on Whatsapp, the app would insert their number in online database and after when you register an account on whatsapp, it gets your local contact numbers and search them in the online database.




回答2:


As per my knowledge when you install the app and register your number then this number goes to the Whatsapp server and stored in their database. Now the main logic comes is that whatapp has its own contact list which shows the number that are present your phone book which has whatapp installed on their phone. It takes all of your phone book entries and send this enteries to their server, now on their server it checks all the number which has whatapp installed from their database and mark a flag on that. After that the list of contact which has this flag enabled will be shown on the user's phone.



来源:https://stackoverflow.com/questions/17339872/whatsapp-contacts-synchronization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!