iphone data synchronization - iphone

I'm new to iphone development. I currently have an app on windows mobile that uses a local database on the device (sqlce) and the app is able to synchronize the data between the device and a remote database through a web service using microsoft sync framework.
Is this requirement feasible on an iphone app? Id like to build a version of my app on the iphone. I see that the iphone can use sqlite for storage on the device.
But does the sdk have something for data synchronization?

No, you have to use JSON or XML to get the data from your remote server via a NSURLConnection and write the code to synchronise the sqlite db on the iPhone. There are plenty of JSON frameworks for the iphone and for the XML route you can use NSXMLParser.

Related

How to connect sybase database from iOS?

1)Is it possible to connect sybase database which is in windows machine from iOS Application for iphone development?
2)If yes,How can we connect and access data base data through query from iOS and see the result in Iphone simulator?
SAP's Sybase Unwired Platform allows you to build mobile applications that can take advantage of your enterprise data sources.

Is there any open source web server on iphone?

I want to make an app. It can launch a web server on iphone to transfer files through wifi.
Is there any open source web server framework available? BTW, I don't want jailbreak my iphone.
You can try mongoose, we used it last time.

Online Database for iPhone App Using Core Data

My iPhone app currently uses core data. I want to create an online database where I can sync data from my iPhone. I also want to store user account info.
Are there any shortcuts or benefits because I am using core data?
I'm thinking I will have to have a 3 tier system for this:
iPhone using Objective Resource (iPhone on Rails and ObjectiveResource; Making communication between the iPhone and a Rails web-service pain-free.) -> Ruby on Rails -> MySQL
BTW, I plan to use twitter sdk for login/registration if that makes any difference.
I would recommend reskit Reskit is similar to objective resource, but has more features, including integrating with core data for caching.
Restkit also has the advantage of being backend independent, its can work with any restful interface.

Client-server web app with both client AND server running on iPhone - is this possible?

I'd like to build a simple native iPhone app with tools traditionally used for web apps.
I would prefer to use something like jQTouch and Rails, but I want it to work offline (not require an internet connection or a server).
Is there a framework that enables simple creation of native iOS aps by encapsulating a lightweight web server and a server-side app framework (Rails or something simpler and more lightweight that can run on a phone), thus allowing you to write the client side code in HTML+JavaScript ?
If there is not such a thing, is there a way to create an app (with HTML+JS) that basically only has a client-side component with persistent data storage?
Thanks.
Have you tried Phonegap?
www.phonegap.com
You write your app in HTML/CSS/JavaScript.
You access the phones APIs through JavaScript - boom!
Also; Appcelerator Titanium would be an option: http://www.appcelerator.com/
-IMO Titanium is more powerful, and offers a more native look.
Why would you want to run a webserver off of the iPhone?
Is it so that you could send back data to the mothership?
Yes, you can included a lightweight http server running in another thread inside your iPhone app, and have your UIWebView connect to it. But unless you are going to do a fancier web server that generates dynamic content, it might be easy to just download your HTML/CSS/Javascript content to a local directory, and then point any URLs to those local files when offline.

Can RIA flash apps on the IPhone store persist data until an internet connection is available?

I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development.
However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power.
Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?
You can write to a database with SQLite3 as a way to store data on the phone.
"You have access to nearly all the AIR 2.0 and Flash Player 10.1 APIs. For example, you can use APIs such as RTMP, Remote Shared Objects, and AMF as well as AIR APIs like SQLite and filesystem access. For more information see the developer FAQ on Adobe Labs."
-source http://www.adobe.com/devnet/logged_in/abansod_iphone.html#
Also they seem to recommend not using Flex:
"While it is possible to create iPhone content using the desktop Flex Framework, we do not recommend it. The Flex framework is currently optimized for execution in a desktop environment. The performance, UI, and interaction models have not been optimized for mobile devices."
source http://labs.adobe.com/wiki/index.php/Applications_for_iPhone#Can_I_use_the_Flex_Framework_to_create_content_for_the_iPhone.3F
Hope that helps :)
In case someone else is also looking for a way to use Flex on Iphones: Adobe is planning to release a mobile version of the Flex framework 2010.