开发者

iPhone: Get data off

Newbie Q.

I am building an app that will store data in sqLite then will collect it at week's end when the staff come开发者_运维百科s into the office.

What options do I have to get the data off.

Perhaps a receiving REST Web service?

Is there an 'export to iTunes file system' or something like that other option?


Depends on the amount and type of information.

For a lot of data that needs to go to a central place, then a webservice is probably the easiest to use for machine processing.

For a lot of data that needs to go onto the users computer, then a client-server structure using Bonjour networking where they run a server on their computer may be best.

For simple data that is not going to be machine processed and instead is simply a report for humans to read, I like to use the Mail API to allow the user to email the results to themselves or anyone else.


Having it upload data to a web service is the typical way to accomplish this.

Apple did not provide any APIs for interacting with the iTunes Sync system.


While iTunes backs up your data, there is no official way to access the data in these backups (AFAIK).

Instead of posting to a web service, you could also serve the data from your app, and have a desktop client download it from the phone.

In both cases, you could use Bonjour to publish the address.


Also see this question for the sync to desktop scenario: Syncing between Mac OS X and iPhone

It seems kind of ridiculous that apple doesn't have support for sync services on the iPhone yet.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜