Pooya1 Active Member Licensed User Jun 10, 2018 #1 Hi I need sync user's device contacts with server and contacts are register in database,return their name or only their number that meaning registered in database But i dont have any idea in mind I use websocket with b4j and no problem in use it Only i need best strategy for sync contact My way is : get all contacts that have mobile number Send all it to server Check numbers in database and return numbers that exist in database In app i receive their and show number's avatar (each user avatar is base of their phone number) Regards
Hi I need sync user's device contacts with server and contacts are register in database,return their name or only their number that meaning registered in database But i dont have any idea in mind I use websocket with b4j and no problem in use it Only i need best strategy for sync contact My way is : get all contacts that have mobile number Send all it to server Check numbers in database and return numbers that exist in database In app i receive their and show number's avatar (each user avatar is base of their phone number) Regards
Erel B4X founder Staff member Licensed User Longtime User Jun 11, 2018 #2 I'm not sure that you need WebSockets for this. A regular handler looks more appropriate. Your strategy sounds reasonable. Upvote 0
I'm not sure that you need WebSockets for this. A regular handler looks more appropriate. Your strategy sounds reasonable.
Pooya1 Active Member Licensed User Jun 11, 2018 #3 Erel said: I'm not sure that you need WebSockets for this. A regular handler looks more appropriate. Your strategy sounds reasonable. Click to expand... Websocket is good reason for realtime jobs Thanks Upvote 0
Erel said: I'm not sure that you need WebSockets for this. A regular handler looks more appropriate. Your strategy sounds reasonable. Click to expand... Websocket is good reason for realtime jobs Thanks