android - Check for contacts having app installed -
i building application users able interact contacts of device(using phonenumber) have application installed ( pretty how whatsapp, viber function)
now functionality can achieved function getcontacts()
- storing app registrations on server
- from app, sending contact server , receiving in server response, registered contacts
however, leads problems of synchronization in cases contacts added/deleted or existing ones updated
for this, knowledge guides me 3 alternatives
- everytime app launched, call getcontacts() method data retrieved fresh
- not sure if method used whatsapp & viber, achievable lot of unnecessary processing during each launch
- have background service poll server through getcontacts() method
- this can keep contacts synchronized
- however, not refresh changes instantaneously. in whatsapp, if change name of contact, reflected instantanouesly
- register contentobserver on contactscontract.content_uri ( not of idea on )
please provide insights
Comments
Post a Comment