How to interact iphone with PHP/MySQl web server - iphone-web-app

I want to interact my Iphone application with a php website having MySQL database.
What basically I want is to fetch data from MySQL database and display it in my IPhone application and after doing some processing in IPhone I want to retrun some information to PHP website in form of XML.
Can any one help me in doing so.
Thanks in advance.
Gaurav

the iphone have safari and that safari version has Ajax feature, so the basic answer you can do it like any other webpage development.
after if you want to implement a native app that's a different story.
I suppose you have to code a webservice (PHP) to consume data. I can imagine it's not really difficult to do HTTP request using the iphone SDK.

Related

PrestaShop to mobile app

I was asked to make a mobile app (native or hybrid) for an existing prestashop website.
What would be the best option for you? I considered:
Services which connect to your API and generate a full Native app, but I never used them so I may not know some cons for this scenario
Services which basically wrap your website in a Webview and use some background logic for push notifications and other stuff
Hand-made mobile app using prestashop api, which seems the most "difficult" option and isn't very documented over the internet.
Thank you!

Synchronise a mobile light database with ASP.NET Web API 2

I am building a mobile application targeting iOS, Android and WP with Ionic/Cordova. And using ASP.NET Web API 2 REST APIs backend.
I have the requirement that the mobile application can collect data and synchronise it with the APIs and if the mobile is offline, the sync will happen when it is online. The data size is small and any light DB would do including the localStorage one. The required sync is only needed one way, mobile to APIs. Also, once a record is synchronised, it can be deleted from the mobile.
I was looking at Couchbase mobile, but I found it is a Mobile DB to DB sort of a solution.
Can you recommend a mobile DB to REST/Web API sync solution?
With the native Couchbase Mobile solution for Android/iOS coupled with the REST APIs you are able to get data from Mobile device to your backend. Then delete any documents off your device once you get back a 200 status.
For Windows Phone, you can explore using PouchDB or going with the javascript browser based solution across all platforms since WP is not currently supported.
For the replication or sync to occur when your device is online again, you would require your backend to use Couchbase Server and implement the replication class methods in your native mobile app to have the push feature. Or you can use the REST API with logic detection when you are online again to POST to your backend.

Explain Cordova project + angularJS, phonegap project, ngcordova

I'm confused about these technologies. Actually i want to build a mobile application with SQLite database for offline as well as should support webApi services or something. So it should support both SQLite and server which targets IOS, Android and windows.
I did some R&D and gather some knowledge about cordova and angular.
I like to use angular on my mobile application so that i can manage my client side data and app flow easily and wisely.
Now i'm confused whether to use cordova or phonegap or ngcordova (which i recently came to know that it exists).
As i mentioned, i want a mobile app with SQLite and support webApi services and also should support multiple platforms.
So now where/how to start and which is best one for me. i'm developing this app for production i mean real time app.
please help to start with.
This is my email id jprasanth74#gmail.com if you have any guide please share it..
Cordova is use for create build in different platforms
you have to start write code in angular.js
just use this sample link
https://blog.nraboy.com/2014/09/implement-barcode-scanner-using-ionic-framework/
to create first app and send me your email i will send you the startup guide line to create enviroment with cordova and ionic framework
ionic framework is support angularjs and cordova both in one package and it is very faster then other framework
http://ionicframework.com/
just dive me the email address i will send you the basic startup

Can I use Ionic without node.js to build a hosted web app?

I am interested in using Ionic to build a web app. The tabs, form stuff, integration with angular.js... everything looks like it should work great.
However, Ionic also looks to be geared towards creating native apps for Android and IOS. It relies on node.js for services. I'll just be hosting it on my client's shared hosting account - I won't be able to get node.js working for it. I don't intend to develop the app to use any services, so I don't think I need node.js. I'll plan to communicate with my DB via http post.
I am interested to know - is there any reason I wouldn't do this? If I am not using any other means of communicating with a server, will I be okay without node.js? Is there a better option for creating an html5 mobile 1 page web app?
I also don't intend to access the camera, accelerometer, or any of that kind of thing, so I don't think I'll need cordova, either.
ionic uses node.js only for development, things like build, test and deploy
not necessarily for back-end proposes

How to build a native mobile app for a joomla site

I am about to build a mobile app using html5 with phonegap. So that i can easily install it on any platform. Android, Blackberry or ios.
I want this app to be able to perform CRUD - in close connection with my joomla site.
The Joomla site is already completed, its a social network. I need this app to be able to retrieve information such as profile pictures, messages e.t.c and then be able to upload pictures, send messages and use the geolocation api.
My question is i dont know how to make the app connect or communicate with my Joomla db.
Well i found the answer, just in case anyone needs it.
To build a mobile using Joomla as the server, what you need is
1. Jquery
2. Build an extension on your Joomla site
3. Using the jquery ajax methods + Joomla's native method to provide data in Json format, you can build an api to send and receive data from your mobile app to your joomla website.

Resources