Communication with server

I want make some app communicate with ubuntu server.

In fact, it’s my first time to using communication at ionic. and I found http at ionic-native.

for communication, with jsp at server, can I use http? or the better things exist??

thanks

hello,

Http in ionic-native returns a promise whereas in http in angular 2 returns an observable. you can dig up the differences on the net. Working with an observable has more flexibility as they can be cancelled and they can work out with a stream of values instead of one like in a promise.

Better work out with the angular http client library.

https://angular.io/docs/ts/latest/guide/server-communication.html

Ashley

2 Likes