Need to know about web based client server app for iPhone - mysql

I want to develop a web based client server application for iPhone. I need to develop a database on server in MySQL for example to store some data and pictures etc. And then develop a web application for iPhone using UIWebView or something to connect to server and extract the data and pictures from the database on server and display on the iPhone screen. (just a website). Is it it possible with MySQL and PHP, or I have to use SQL Server or some other DBMS? What is needed for me?? Any tutorials, suggestions etc??? Thanks a lot.

First you need to get the familiar with the objective-c language and iOS sdk to connect with the server from your iOS app. good starting point would be to start with apple developer site(developer.apple.com) or ray wenderlich tutorials.You can show your webpage inside iOS app using web view but if you want to set a UI for your data and pictures then you need to use iOS tools like UITableView or UICollectionView and create your custom UI. For connecting the server and getting data you can use this tutorial how to create a web service

Related

Vb.net run apication server-side?

I want to build a website which uses HTML buttons that use the POST method to trigger a vb.net function on the "server" host PC via the TCP... In fact this is how I build applications on our local network. I was thinking this could be handy if it were also applied to a website on the WWW.
My vb.net applications typically receive an input from the html POST method, use that input to calculate or retrieve data and generate a new html page for the users viewing (typically displaying the requested data in some form or other)
I had built a simple website on a synology NAS before which will not run any vb.net applications because its not windows based.
What I was looking at was a HP Proliant Microserver that has windows server running on it.
I've never done this before but was intrested to know if this concept of posting html text to trigger server-side running vb.net applications would work on a windows server or is there far more involved?

How to store data in a client app and download data to a main server (ionic 2/angular 2)?

I'm developing an app in Ionic 2/Angular 2/Cordova and I need to implement this behaviour: storing data in the client app and download data of each client to the main server database, periodically, as soon as the mobile data network on the device is available.
What is the current best practice to do this?
I would think SQLlite database on the app, mySQL database on the server and a web service for the app to call and send data. There is something pre-built to do this? (coding this from scratch seems to me like reinventing the wheel)
EDIT: after some researches I've found something called PouchDB (son of CouchDB) but I'm not sure it is sufficiently used/supported by the community to use it and hope to find help online in case of problems

I am using Realm Mobile Platform i want to display same data on web and Mobile both

I am developing an app by using Realm Mobile Platform. Want to have real-time data transfer between the device, Which is working completely fine by using Realm Mobile Platform. But I am not able to get the data and display it on the server(Website).
Example: Slack
You can access slack from the different phone and at the same time, you can access it on the web browser.
I want to perform the same kind of feature using Realm Mobile Platform.
Is there any way to import realm Database into MySQL? By this Way, I can show the data on the server as well.
If your website backend is node.js based you can open the same realms on server with the node.js version of realm (https://realm.io/docs/javascript/latest/).

How to access an existing database file through html5?

I'm working on an desktop app(hta) that need to access information from a database.
My challenge is that already I have the data I need in a sqlite database file. I just want to access this database file from my app then manipulate and display the results to the users.Is it possible to deploy an app like this? I'm not finding a way to access an existing database file through html5.(The sqlite database file will be created during the app installation.It is present in C:\filepath)
The solution will depend on your use case. I can see two of them.
1. Your application runs in disconnected mode (standalone)
HTML5 provides an API called Web SQL Database. It enables you to access an API for storage in the web browser. It's pretty much build around SQLite features. However, all the web browsers do not support it.
2. Your application can access a remote server
In the case you have a remote database, and your application is allowed to access it, I would suggest that you connect to your database by making requests to it. Of course, you will require to develop your own little API on the server side to access the database e.g. via XmlHttpRequest.
You can use javascript to access Web SQL databases. Remember, Web SQL is deprecated and only supported in Chrome and Safari. And Web SQL isn’t even actually part of the HTML5 specification.
For a starter's guide: HTML5 Doctor: Introduction to Web SQL Databases

Develop an iOS App that gets contents from a remote DB

I am developing an education app for Kids.
The application is going to contain pictures, stories and video as well.
Including all above contents in the app will surely bloat it and hence i would like store all data on a server that will be accessed by my app.
I haven't used any remote databases (like MySQL or Oracle) with any other iOS app. In fact i am a newbie in developing such kind of apps. Can any one point me to a sample
Connecting to a remote mysql is really not recommended.
The security here is critical.
You should create a webservice and my advice to you is to make sure that the access to the webservice is restricted
The webservice can be your own "protocol" or any other well known protocol like SOAP
By your own I mean, json, csv .... or whatever.
Edit 1
The technology of your webservice should be dependent on many things.
If the system is small, and the code needs to be update very often, I would suggest to do it with PHP and some small(!) MVC framework like CI.
But if its a large system with needs of ACL (access control list) I will probably choose java with spring...
I suggest that : Do not connect to / use database directly from user application. It may causes serious security problems and your app should have native SQL drivers to connect db.
So, create a web service that receive queries from the application and response in XML, JSON or some other strings that easy to parse. This will be much easier than embed native APIs into your apps.