Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-19-2009, 01:59 PM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 12
sharik14 is on a distinguished road
Default can lite and paid apps share user data?

Hello,

I've been searching everywhere and am stumped by this, and the SDK docs have been no help.

I'm interested in developing a "free" or "lite" version of my ap as well as a paid version. I'd like for users to be able to upgrade without losing their user data that they created with the free version.

If I understand right, the paid version is a different app -- Apple approves it differently. Here's the question -- is there any way to make it share the same Application sandbox user directory as the lite version?

Some apps seem to claim they can do this. I looked at one that has an 'export' feature which exports from one to the next. ??? I have all kinds of disgusting ideas (e.g. encode the data and pass it in a URL scheme from one to the next, or upload to an intermediary website). I hate all of them. Is there a way to do this?

Thanks in advance!

Regards, Ben.
sharik14 is offline   Reply With Quote
Old 03-19-2009, 02:59 PM   #2 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

Quote:
Originally Posted by sharik14 View Post
Some apps seem to claim they can do this. I looked at one that has an 'export' feature which exports from one to the next. ??? I have all kinds of disgusting ideas (e.g. encode the data and pass it in a URL scheme from one to the next, or upload to an intermediary website). I hate all of them. Is there a way to do this?
Your disgusting ideas are the only way I know how, at least in 2.0. I have not seen the docs for the 3.0 SDK yet.
__________________

Free Games!
smasher is offline   Reply With Quote
Old 03-19-2009, 03:14 PM   #3 (permalink)
iOS Developer
 
chaseacton's Avatar
 
Join Date: Feb 2009
Location: United States
Posts: 541
chaseacton is on a distinguished road
Send a message via AIM to chaseacton Send a message via Skype™ to chaseacton
Default

Quote:
Originally Posted by smasher View Post
Your disgusting ideas are the only way I know how, at least in 2.0. I have not seen the docs for the 3.0 SDK yet.
The only way i could think of is if the profiles were stored online and the app downloaded them.
chaseacton is offline   Reply With Quote
Old 03-19-2009, 03:45 PM   #4 (permalink)
New Member
 
Join Date: Dec 2008
Posts: 48
DavidG is on a distinguished road
Default

If the apps share a common wild card application ID don't they both have access to the same keychain? Not that you could store much there but I believe that it was intended to have common login information and other secure bits stored there.
DavidG is offline   Reply With Quote
Old 03-23-2009, 01:56 PM   #5 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 12
sharik14 is on a distinguished road
Default

Quote:
Originally Posted by smasher View Post
Your disgusting ideas are the only way I know how, at least in 2.0. I have not seen the docs for the 3.0 SDK yet.
Thanks for the reply -- I've been waiting to hear more on the 3.0 SDK, too -- but unfortunately my client wants the app posted before the summer. Oh, well. Thanks nonetheless.
sharik14 is offline   Reply With Quote
Old 03-23-2009, 01:57 PM   #6 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 12
sharik14 is on a distinguished road
Default

Quote:
Originally Posted by chaseacton View Post
The only way i could think of is if the profiles were stored online and the app downloaded them.
Yeah -- I've come to believe that this is what most of the apps that advertise do. For example: file storage app that provides access to online data.
sharik14 is offline   Reply With Quote
Old 03-23-2009, 01:59 PM   #7 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 12
sharik14 is on a distinguished road
Default

Quote:
Originally Posted by DavidG View Post
If the apps share a common wild card application ID don't they both have access to the same keychain? Not that you could store much there but I believe that it was intended to have common login information and other secure bits stored there.
Hmm .. interesting idea. Which application ID do you mean? I thought the keychain was determined by the GUID that's assigned dynamically at the time the app is copied to the device (as is the real location of the sandbox'd home directory).

In any case, unfortunately I don't think this will work -- it's more data than could fit in a keychain (even uncoded). The best I could come up with something similar: encode the data in a string, then pass it on a URL to the upgraded app. But even then it's more data than can reasonably be passed.

Thanks anyway for the thought!

Ben.
sharik14 is offline   Reply With Quote
Old 03-23-2009, 02:07 PM   #8 (permalink)
ftm
FasterThanMonkeys.com
 
Join Date: Mar 2009
Location: Southern California
Posts: 523
ftm is on a distinguished road
Send a message via AIM to ftm
Default

Our application uses the unique ID of the device ([[UIDevice currentDevice] uniqueIdentifier]), and an HTTPPOST to export data to the server (in our case, it is a sqlite database file that holds all the data), and then the data can be imported back to the device by the paid version. It is a pretty simple solution as long as you have a server that can run some code to store the data for the user.
__________________


Website: http://fasterthanmonkeys.com

iScore Baseball Scorekeeper Top baseball scorekeeping app for iPhone
Bug Squash Reached #1 kids game in 15+ countries including USA, now with OpenFeint
Jam Packed! Fun puzzle game for all ages
Jam Packed Christmas Holiday puzzle game!
iScore Basketball Scorekeeper Best basketball scorekeeping application
ftm is offline   Reply With Quote
Old 03-23-2009, 02:23 PM   #9 (permalink)
New Member
 
Join Date: Mar 2009
Posts: 12
sharik14 is on a distinguished road
Default

I was thinking about doing this, but the device ID is an interesting twist. We'd have to configure a server to handle this, but shouldn't be much of an issue. I doubt the traffic will be that high, and privacy isn't much of an issue, so it might work.

Thanks!
sharik14 is offline   Reply With Quote
Reply

Bookmarks

Tags
data, files, lite, sandbox, userdata

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 335
3 members and 332 guests
guusleijsten, Kryckter, LEARN2MAKE
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:49 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0