2

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?

CSharp
  • 1,573
  • 2
  • 14
  • 25

2 Answers2

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

Community
  • 1
  • 1
lujop
  • 13,504
  • 9
  • 62
  • 95
  • 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

  1. 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.

  1. Server connects

You can use c2DM where in you can force notification on devices.

Its not blank
  • 3,055
  • 22
  • 37