★ TouchArcade needs your help. Click here to support us on Patreon.

Sharing data between apps?

05-02-2009, 05:25 PM
#1
Joined: Feb 2009
Location: San Jose, CA
Posts: 546
Sharing data between apps?

I'm working on an application where objects a user collects in the game can be used in a second game as well.

I searched Google a bit, but I'm still unclear how applications from the same developer have access to data from the other. Does anyone have some resources that discuss this?
05-02-2009, 05:30 PM
#2
Joined: Apr 2009
Location: Norway
Posts: 11
Well, you could use an algorithm to create a string the user passes into the second game, like Golden sun did, but I'm not sure how they did it =/
If you have the resources you could also upload the "savedata" to a server, and then download it again in the second game. I'm not sure if there's any other direct way of doing this, if so others might know it

Soon to be iPhone/iPod Touch game developer!

05-02-2009, 06:43 PM
#3
Joined: Dec 2008
Location: Sacramento, CA
Posts: 4,568
Have users create accounts and log in. Keep all their data attached to their account.

If they buy the second game and log in with the same username, their stuff could still be attached to their name.

Although, I don't know how to do that

Twitter: @Zincous
05-02-2009, 07:01 PM
#4
Joined: Feb 2009
Posts: 658
maybe see if feint can do that. That is how you migrate from feint 1 to feint 2

Playing: Hi How Are You, iBlast Moki, Rolando, ScareCrow, and all of my Plus+ games.
ngmoco:] Plus+ ID: Danlipson
Challenge Me!
PM me for free video editing of... anything
05-02-2009, 09:44 PM
#5
Joined: Feb 2009
Location: San Jose, CA
Posts: 546
Sounds like the solutions suggested so far are server side, which is a fine solution. However, I was hoping to do something that shared data on the client (phone) side. I was under impression that if applications were signed with the same key (or something like that) you could access data from the other. I could be mistaken though.
05-02-2009, 10:39 PM
#6
Joined: Oct 2008
Location: Vancouver, BC
Posts: 1,652
Quote:
Originally Posted by lazypeon View Post
I searched Google a bit, but I'm still unclear how applications from the same developer have access to data from the other. Does anyone have some resources that discuss this?
I've been wondering too. For example, every Tap Tap game you have automatically logs in to your account without you doing anything. I thought all apps could only access their own "sandbox".

Anybody? Maybe somebody from Tapulous ?

 /l、
(゚、
 l、 ~ヽ
 じしf_, )ノ Inconspicuous Group Cat?
05-03-2009, 09:12 PM
#7
Joined: Mar 2009
Location: BC, Canada
Posts: 10
I have not tried it myself, but according to the documentation if you use a wild card App ID (i.e. com.example.*), then all applications using the same App ID can access the same keychain items.

Wopiti - Social gaming, on the move.

Wopiti Words - Addictive word finding game featuring exciting multiplayer action
05-04-2009, 05:12 AM
#8
It depends on what data (and the size of it) that you want to share.

A server-side solution is the best idea, however you could you use the UIApplication openURL method in your first game to launch the second game and pass the data across.

That removes the need for any kind of network connection.

Didev Studios || Twitter || YouTube || Facebook
Releases
GeoSnake || Bugz || Review Scraper (Open Source)