I want to know that how Live Stock Update or Live (Cricket) score update Android application works? Is Server connecting to client(Application) or client(Application) connecting to server?
Asked
Active
Viewed 2,196 times
2
-
1What has this got to do with WCF??? – tom redfern Apr 30 '12 at 10:19
-
Yes Hugh, You are right. WCF is not related to this. I have added this tag as my server is (will) running WCF and hence I put it subconsciously. – CSharp Apr 30 '12 at 10:56
-
Thanks - have removed downvote – tom redfern Apr 30 '12 at 11:00
2 Answers
0
Physically it's the client that connects to the server because mobile phones doesn't have static IPs or names that a server can use to connect.
But functionally that type of applications are usually implemented using PUSH notifications that simulate server to client communication. You can look at here or here for some information
-
Thanks Lujop, Here my doubt is how safe my data as in PUSH Notification we are pushing data through Google Server? – CSharp Apr 30 '12 at 11:18
-
Normally you put very little data on push notification. And what you include is a key for the client that then it can use to query the server for the content of the new data. – lujop Apr 30 '12 at 11:20
0
Can be both ways depending on type of feeds that you want to give
- Device Connects.
You can use a service in background that connects to server and gets data after a fixed interval of time using AlarmManagers/Timer etc.
- Server connects
You can use c2DM where in you can force notification on devices.

Its not blank
- 3,055
- 22
- 37