Migrating data from one app to another. Sandbox?

Member
Posts: 110
Joined: 2009.07
Post: #1
So far, all I've used to store local data is NSUserDefaults. Now that I have Lite and Full versions of my game, I'm being asked if it's possible to migrate data from one app to another without violating Apple's strict rules on the sandbox.

Anyone have any luck doing anything like this?

http://www.fluttermind.com
Fluttermind - Games for Everyone
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #2
I'm 99% sure you can't without a server to send the information too. It would be news to me if you could.

You can pass data to other applications using URLs, but thats going to be pretty limiting. I suppose if the amount of data was small, you could base64 encode it and glue it on as a URL parameter or something.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Moderator
Posts: 770
Joined: 2003.04
Post: #3
How about using a custom pasteboard type? On the lite version, the "export" button simply copies the data to the pasteboard using a custom type. On the full version, have it always check for that pasteboard type on launch and offer the option to import the data if it is available. You can even launch the full version app using a URL as Skorche mentions, making everything seamless.

http://developer.apple.com/iphone/librar...boardTypes
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #4
That's pretty clever. I bet that would work.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Member
Posts: 110
Joined: 2009.07
Post: #5
PowerMacX Wrote:How about using a custom pasteboard type? On the lite version, the "export" button simply copies the data to the pasteboard using a custom type. On the full version, have it always check for that pasteboard type on launch and offer the option to import the data if it is available. You can even launch the full version app using a URL as Skorche mentions, making everything seamless.

http://developer.apple.com/iphone/librar...boardTypes

Every so often, I'm struck by the fact that other people in the world are far cleverer than me. This is one such time. You, sir, are a genius. Have a pint and pretend I paid for it. :-)

http://www.fluttermind.com
Fluttermind - Games for Everyone
Quote this message in a reply
Post Reply