I am developing an iOS application that will be communicating with a PHP/MySQL web service to send/receive data. My plan is to also have a website that has similar functionality to the iOS application and will also interact with the web service. Should I be using a framework to build this web service (I am thinking about Laravel)? Is it a good idea to have the web service separate from the website?
Thanks.
If you are building a native application and requires connection to your website or collecting info, I suggest you to build you own API to access the data from ios using json.
Related
I want to ask how to make the mobile application of CodeIgniter with phonegap or basic 4 android. I built a web-based information system applications with CodeIgniter framework. I'm having problems when creating mobile applications based on CodeIgniter
basic4android or b4a through okHttp2 library or httputils library can send post request or get request to your server through php scripts so b4a can be ok for you
I have a REST Api server in PHP (Laravel). I need to have web and mobile clients interacting with the REST endpoints. I am using Angular for reactive updating for the web client. I would like to know how can I develop a similar reactive updates on Mobile (Android+iOS) clients in a effective/performant way.
Any examples or standards/paradigms would be great.
Firebase looks promising for realtime data synchronisation across clients.
I'm totally new about mobile application development and i'm getting really confused about few things.
I'm actually developing web application under zend framework 2 (php framework) and Zend studio (IDE).
So to not starting all over again i want to make a mobile app (for learning purpose) with ZF2 and Zend studio.
I've been following that tutorial.
So i'm not sure to understand how the data are stored. Until now i have used MySQL with phpmyadmin for my web applications.
From what i understand, i need to use a cloud server such as Parse, phpcloud or else, am i right?
My question is, how the website and the mobile app will share the same data?
typically you will have to write web services that will expose a few methods which in turn will get the required data you want to share.
So your connectivity should look like Mobile APP --> Web Service --> DB
Make sure to thrown in some kind of authentication to avoid abuse of your web services. The webservice can be deployed on the same server that is hosting the website
One more way is to access the mysql database directly from your mobile application . This is NOT recommended because essentially you are exposing your DB to the world. This is OK in case of a corporate application which will only work within your company network or with a controlled environment.
You can use a PaaS like Heroku or Openshift to host your web application. But The web application must also expose a set of web services, which can be used to send and receive information to and from the mobile app.
I think the tutorial you mentioned explaining about building a mobile web site. That is you need to support your web site for small screens like mobile phones or tablets.
If you are planing to build a native mobile application, best approach would be to expose core services using RESTful web services.
using the same database... you have 2 options.... either make a php script to attend the mobile request, or creating a special mysql user that has access to the same database your website uses...
I have an existing web app that I have written in CodeIgniter using a MySQL database.
I now want to learn how to develop an iPhone app for the web app.
I have had a look at a lot of tutorials about xcode and iphone development but I have yet to see one about connecting and displaying data from my database.
I have seen the topic of RESTful come up a few times but am unsure if this is the direction I need to go?
If anyone has had success in building an iphone app that connects to a MySQL DB, would they be kind enough to share some tips or tuts on getting started.
I was working in a similar project: http://www.savemeeting.com It consists in an app (iOS, Android and Blackberry) and a Web showing the same information. Basically you need a Web Service (RESTful, XML-RPC, SOAP...) server and a Web Service client in your app.
I recomend you to write a RESTful server, if you use Code Igniter, you can use this library: https://github.com/philsturgeon/codeigniter-restserver and then write the client in your iOS app (sorry, I have no knowledge to guide you in this part).
Is it possible to use the Google App Engine with datastore only and keep your application on an external traditional server?
I'm interested in the GAE for Business SQL service coming soon but I only want to use GAE for the database. I would like to keep the php application on a traditional server for a variety of reasons.
Is this possible?
Yes it is possible and GAE is fairly used in this specific scenario; think about the hundreds of Iphone/Android applications that use GAE as back-end.
A simple common design would have:
A Web API to communicate with GAE datastore since you can't connect directly to it from your php application. Have a look to restlet for a cool RESTful Java web framework that supports GAE or the new Appengine-rest-server Python project .
A security check to validate that the requests are coming from the php application (HMAC / SSL).