1

Hi I am new in mobile app development. My server is sending me data via socket. I am having a problem with the socket whenever my app is going to the background, I am not getting data from the socket.

I would like to know how I can establish a socket connection which will give me the data all the time regardless of whether the app is in foreground or background.

Thanks in advance.

Damon
  • 3,004
  • 7
  • 24
  • 28
Zali Acc
  • 79
  • 1
  • 5
  • That is what push messages are used for. Don't drain the users battery when they are not using your app. If you have some information they need right now: send a push. Otherwise: let them use your app when they choose to. – David Rönnqvist Aug 23 '13 at 17:47

1 Answers1

0

You cant start with Socket based iphone app awesome tutorial by Cesare Rocchi.

Tarek Hallak
  • 18,422
  • 7
  • 59
  • 68