• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send live data from java server application to ios client app

 
eugene malcolumn
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i send live data from java serevr application to ios client without let ios client poll my java server..?polling uses up battery in very short time..
 
Tim Moores
Bartender
Posts: 3129
50
 
eugene malcolumn
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


also i wanna send live data from same java server to windows phone app...
 
Rob Spoor
Sheriff
Pie
Posts: 20751
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does iOS support WebSockets? If so you can use that. Set up a WebSocket connection to the server, and let the server push its data through the connection.
 
eugene malcolumn
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Websockets are for sending data to websites only.wanna send live stocks data
To native ios and windows phone apps  
 
Paul Clapham
Sheriff
Posts: 21565
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you're saying (or rather, you aren't saying) that you don't control this server. So do you or don't you? It's an important distinction and it's unfortunate that you didn't mention it.
 
Maneesh Godbole
Saloon Keeper
Posts: 11327
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems there are libraries available which send server push across multiple client platforms.
e.g. http://quickblox.com/

GCM (Google cloud messaging) is now rebranded as FCM (Firebase Cloud Messaging) but I do not see anything for Windoze
https://firebase.google.com/docs/cloud-messaging/
 
Rob Spoor
Sheriff
Pie
Posts: 20751
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
eugene malcolumn wrote:Websockets are for sending data to websites only.

No they're not. WebSockets allow two-way communication - clients can send data to the server, and the server can send data back to the client. You can omit sending data from the client to the server as well, and that would then fit your requirements exactly.

Of course, if you don't control the server than it doesn't matter anyway...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic