Ask away

Mobile app input/output

Lee 01/11/17 00:11

157 views

Question CategoryBuild & Deploy,Data Binding,Server

Number of completed projects0

Question StatusUnsolved

  • Data interface
  • Server process
  • remote

Question

I am charged with building a native mobile app for my company. Because I do not know Ojective-C, Java, or other native language, I plan to build the app with the NEST platform. I have built many simple apps this way and it works very well, but none of my apps have relied on remote data. I am not necessarily looking for code help, rather I need references. How do apps like Facebook Mobile and others like it send and receive data from its app? Please help get me going.

Answers

3
Jim 01/14/17 22:30

You can use jQuery & Ajax to send and receive data through app. You can interact with server scripts like JAVA servlet with ajax. There are plenty of resources for this. A simple ajax request can be like $.ajax({ url: "http://www.example.com/test.php", type: "post", data: values, dataType: json, success: function(data){ alert("success"); $("#result").html('Submitted successfully'); }, error:function(){ alert("failure"); $("#result").html('There is error while submit'); } }); You have to deal with how you will send response from server to app. Like in this example it's expecting a json reply. View this link, this might help you

Artie 01/15/17 17:39

Traditionally, via HTTP. You should first look at how HTTP commands (mostly POST and GET) work, how to use Websockets to establish continuous connection. If you use JavaScript, you need to learn principles of AJAX and how to implement it using js.

Peter c 01/16/17 21:39

For me, Wikipedia was quite enough. You better search for a Websocket package that will suit the server you're using. Often, such package have both server-side packages and .js files that you just link in your html. For example, if you use node.js server, just install socket.io package and read its docs.

Answer

Project

Image

Comment