• Post Reply Bookmark Topic Watch Topic
  • New Topic

send live data from java server application to ios client app  RSS feed

 
Ranch Hand
Posts: 46
  • 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..
 
Saloon Keeper
Posts: 4168
100
 
eugene malcolumn
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:That's what push notifications are for: https://developer.apple.com/notifications/

Discussion of Java APIs: http://stackoverflow.com/questions/14397926/which-apple-push-notification-service-java-library-should-i-use#18391135



also i wanna send live data from same java server to windows phone app...
 
Sheriff
Posts: 21201
87
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
Ranch Hand
Posts: 46
  • 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  
 
Sheriff
Posts: 23116
45
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.
 
Bartender
Posts: 11445
18
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
Posts: 21201
87
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...
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!