Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 835591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:50:53+00:00 2026-05-15T04:50:53+00:00

I’m working on an iPhone application that should work in offline and online modes.

  • 0

I’m working on an iPhone application that should work in offline and online modes.
In it’s online mode it’s supposed to feed all the information the user enters to a webservice backed by GWT/GAE.
In it’s offline mode it’s supposed to store the information locally, and when connection is available sync it up to the web service.

Currently my plan is as follows:

  1. Provide a connection between an app and a webservice using Protobuffers for efficient over-the-wire communication
  2. Work with local DB using Core Data
  3. Poll the network status, and when available sync the database and keep some sort of local-db-to-remote-db key synchronization.

The question is – am I in the right direction? Are the standard patterns for implementing this? Maybe someone can point me to an open-source application that works in a similar fashion?

I am really new to iPhone coding, and would be very glad to hear any suggestions.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:50:54+00:00Added an answer on May 15, 2026 at 4:50 am

    about system design direction:
    First if there is no REAL need do not create 2 different apps one GWT and other iPhone
    create one but well written GWT app. It will work off line no problem and will manage your data using HTML feature — offline application cache
    If it a must to create 2 separate apps
    than at least save yourself effort and do not write server twice as if you go with standard GWT aproach you will almost sertanly fail to talk to server from stand alone app (it is zipped JSON over HTTP with some tricky headers…) or will write things twise so look in to the RestLet library it well supported by the GAE.

    About the way to keep sync with offline / online switching:
    There are several aproaches to consider and all of them are not perfect. So when you conseder yours think of what youser expects… Do not be Microsoft Word do not try to outsmart the user.
    If there at least one scenario in the use cases that demand user intervention to merge changes (And there will be – take it to the bank) – than you will have implement UI for this – than there is a good reason to use it often – user will get used to it. it better than it will see it in a while since he started to use the app because a need fro it is rare because you implemented a super duper merging logic that asks user only in very special cases… Don’t do it.
    balance the effort. Because the mess that a bug in such code will introduce to user is much more painful than the benefit all together.

    so the HOW:
    The one way is the Do-UnDo way.
    While off line – keep the log of actions user did on data in timed order user did them
    as soon as you connected – send to server and execute them. Same from server to client.
    Will work fine in most cases as long as you are not writing a Photoshop kind of software with huge amounts of data per operation. Also referred as Action Pattern by the GangOfFour.

    Another way is a source control way. – Versions and may be even locks. very application dependent. DBMS internally some times use it for transactions implementations.

    And there is always an option to be Read Only when Ofline 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.