iPhone offline application with synchronization

后端 未结 5 1474
深忆病人
深忆病人 2021-01-29 23:52

I\'m looking into building an application which works just as well offline as it does online. Since the application cannot communicate with the server while in offline, there is

5条回答
  •  攒了一身酷
    2021-01-30 00:06

    I would store all the information I gather while offline in a SQLite database. Then, on user 's request, you can SYNC all the stored information with a server using HTTP or a custom TCP/IP protocol you can come up with.

    I have been using this approach on Palm OS applications for almost 10 years now, and they do work very effectively.

    As far as I know, the only "tool" you will have to accomplish this is plain old OBJECTIVE-C with Cocoa Touch. Although you could use some TCP/IP C++ libraries that will make your life easier if you decide to implement your own protocol.

提交回复
热议问题