Migrating data from one app to another. Sandbox?
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?
Anyone have any luck doing anything like this?
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.
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.
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
http://developer.apple.com/iphone/librar...boardTypes
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.
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. :-)

