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.
Related
Im new to iPhone development and I find PhoneGap suitable for me for i am a web developer. I'm into practicing database using SQL. because of HTML5 support built into safari browser they support database natively into the browser.
I wonder if theres a good example that is easy to follow of using CRUD into SQL database in iPhone.
After reading your question, I think some points need to be explain:
phonegap
Official documentation & description can be found on : OfficialWebSite
Phonegap is an open source framework / tool to develop cross mobile application. It allows to create mobile applications using only web technologies like html, css, javascript (ajax philosophy mostly used) and get access to APIs & app store.
It provides a wrapper for javascript to access to core mobile technologies like sensor or gps...
You write your web application with phonegap functionnality, and after compilation for each plateform you obtain an native application (webview inside the application runs the application...)
To write the application, you can take advantage of HTML 5, javasvript
The obtained app can be deployed on the application store.
actual supported plateform iPhone, Android, Blackberry, webOS, Symbian and Bada
html5 & storage
One of the functionnality introduced by html 5 is the local storage which permits to manage local storage in your browser with a key-value approach. it could be considered as a super cookie (too much resteictive) and permits to speed up treatment or have an off line access to the application.
Refence
good introduction
for example:
you can write a rss reader which download the news locally and store them tx to local storage. next lanch you just have to do the rotation with old news and if phone is out of network it works always but no update...
CRUD
the html 5 storage could be manipulated with javascript
manipulation sample
I have created a application which uses Sqlite database.
Now i wanted to deploy the application on iPhone and iPad.
I wanted to know whether the Sqlite is inbuilt or not in iPhone/iPad device?
Yes, iOS includes the SQLite library.
SQLite
iOS includes the popular SQLite
library, a lightweight yet powerful
relational database engine that is
easily embedded into an application.
Used in countless applications across
many platforms, SQLite is considered a
de facto industry standard for
lightweight embedded SQL database
programming. Unlike the
object-oriented Core Data framework,
SQLite uses a procedural, SQL-focused
API to manipulate the data tables
directly.
SQLite is inbuilt in iOS. The database is a simple .db(usually)/.sqlite file which you will have to copy as a part of deployment.
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.
I am trying to build an Iphone App client for our CRM solution so our sales people would be able to access the information available in our CRM through an Iphone App.
I am trying to find out what is the recommended approach to architect the application when it comes to the database. I am not sure where should the data reside, should I save a subset of the data on the iPhone, or should I just rely on webservices and pull the information I need from the database whenever I need it. Also, is there any best practices or frameworks to build such applications on the Iphone.
The "best" solution from a data synchronization standpoint is work directly with the web based database, the "best" solution from a user experience standpoint is probably not that, due to latency passing data back and forth from the server.
If you do not have experience doing iPhone apps & you have no desire to learn Objective-C & would like to leverage web development skills I recommend a combination of phonegap + jqTouch.
Hope I helped.
Is your CRM based on Rails? You might find ObjectiveReference handy. It's an Objective-C interface into ActiveResources on a RoR site:
http://iphoneonrails.com
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.