user3689281
user3689281

Reputation: 13

Passing data between different apps on a single device

I'm designing a game and I'm still pretty much in the planning phase for the most part. I'm considering a pretty cool feature, but I'm not sure if it will be doable yet. What i have in mind is: would it be possible to access a game save from one game using a second game. Clearler explanation: I release game A, user plays through game A and collects some game items along the way (weapons, equipment, whatever). Then later, I release game B, which can be considered a continuation of game A (think DLC terms). Game B can be played from scratch, its a standalone release, but I'd like to offer players an option to transfer their character progression from the previous one. Would I have an option to do that?

Is it for instance possible to create a save file on a device in some neutral directory (not linked to a specific app), so that different apps can all reference the same file on the device?

Upvotes: 0

Views: 72

Answers (1)

Scrungepipes
Scrungepipes

Reputation: 37590

These are the options:

  • App A and App B could launch each other using URL custom scheme launching with the data to pass between them appended to the end of the URL

  • They can share data using the keychain

  • They can share data using a custom pasteboard

  • Treat the data as a document and share via UIDocumentInteractionController

  • They can share data using UIActivityViewController

  • They share data indirectly using a server / cloud

Upvotes: 1

Related Questions