What is the easiest way to pass an array from a server to a mobile device?

Posted on 2016-12-28
Medium Priority
Last Modified: 2016-12-29
I would like to pass an array of text information from my server to a smart phone that requests it. For example, the phone says "Send me all the information you have about product xyz." What is the simplest way to do this? The information will be pulled from the server database. I imagine some PHP on the server collecting the requested information into an array and then dropping the array down some "channel" to the mobile device. I'm just not sure what that "channel" should look like.

Thanks for any ideas.
Question by:steva
  • 2
  • 2
LVL 40

Accepted Solution

Shaun Vermaak earned 2000 total points
ID: 41941173
I would use a Web Service on Server that responds to requests from clients with JSON data object containing the product information

Author Comment

ID: 41941763
Ok.  After digging a bit more it looks like IOS and Android support jQuery Mobile, and with that they could issue a jQuery.getJSON() to my server URL, specifying the product they wanted information about, and I could respond by gathering the data from the database and returning it.

Does that sound reasonable?
LVL 40

Expert Comment

by:Shaun Vermaak
ID: 41941764
Yes, that can work. Just remember that it is just a web call to an address and cleartext coming back so very compatible.

Author Closing Comment

ID: 41941773

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this interview with the head of client strategy for blockchain developer Very, we take a look inside the growing popularity of blockchain development and how this technology can make an impact beyond Bitcoin.
In this article, I explain everything about the complete journey of a mobile app and its development lifecycle. Read the complete article to learn more about this fascinating topic.
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
In this video I will demonstrate how to set up Nine, which I now consider the best alternative email app to Touchdown.

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question