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 09-14-2010, 01:43 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: UK, North East
Posts: 227
zardon is on a distinguished road
Default In-app store theory: Buying scenarios?

I have an app I'm building where I would like the user to be able to have scenarios (with their own data), but I am unsure about the theory.

1. The app comes with a pre-built-in sqlite database (let's call this BASE.DB).

2. The BASE.DB at its most basics would be:

tbl_scenario { id, name, details, etc }
tbl_game {id, scenario_id, name, date_saved}
tbl_boxer {id, game_id, name, etc}

3. I would like the in-app store to give the customer different scenarios and their own data. The boxers could be different in each scenario.

I'm totally stuck on the theory (not the app-store bit).

1. How do you make sure the scenarios do not overwrite BASE.DB?

2. Do you make separate databases for each scenario? This is more of DB structure issue. How would you create a db structure for scenarios?

3. How do you tackle scaling issues? For example, BASE.DB = 3MB database, now the user gets 5 scenarios = 3MB * 5 = 15MB.

a. One answer would be you can only have 1-3 scenarios on your phone at any one time?

5. Can you use the in-app store purchases purely for SQLite databases which contain my scenarios?

Has anyone built an app that has in-app-store purchases for sqlite databases ("scenarios")?
zardon is offline   Reply With Quote
Old 09-14-2010, 02:21 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Quote:
Originally Posted by zardon View Post
I have an app I'm building where I would like the user to be able to have scenarios (with their own data), but I am unsure about the theory.

1. The app comes with a pre-built-in sqlite database (let's call this BASE.DB).

2. The BASE.DB at its most basics would be:

tbl_scenario { id, name, details, etc }
tbl_game {id, scenario_id, name, date_saved}
tbl_boxer {id, game_id, name, etc}

3. I would like the in-app store to give the customer different scenarios and their own data. The boxers could be different in each scenario.

I'm totally stuck on the theory (not the app-store bit).

1. How do you make sure the scenarios do not overwrite BASE.DB?

2. Do you make separate databases for each scenario? This is more of DB structure issue. How would you create a db structure for scenarios?

3. How do you tackle scaling issues? For example, BASE.DB = 3MB database, now the user gets 5 scenarios = 3MB * 5 = 15MB.

a. One answer would be you can only have 1-3 scenarios on your phone at any one time?

5. Can you use the in-app store purchases purely for SQLite databases which contain my scenarios?

Has anyone built an app that has in-app-store purchases for sqlite databases ("scenarios")?
Using more than 1 db no make sense.

in tbl_scenario there is "id" that identify the single scenario, not? if so you should just add others records with other id. If there isn't add it a column like "id_scenario", so that you can insert more than 1 scenario, when you will do a query you have something like "SELECT * from tbl_scenario WHERE id_scenario='1'".

or i missunderstood your request?.
__________________
dany_dev is offline   Reply With Quote
Old 09-14-2010, 03:29 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: UK, North East
Posts: 227
zardon is on a distinguished road
Default

Quote:
Originally Posted by dany88 View Post
Using more than 1 db no make sense.

in tbl_scenario there is "id" that identify the single scenario, not? if so you should just add others records with other id. If there isn't add it a column like "id_scenario", so that you can insert more than 1 scenario, when you will do a query you have something like "SELECT * from tbl_scenario WHERE id_scenario='1'".

or i missunderstood your request?.
This makes sense; the only issue is that you could wind up with a 1,000 boxers for different scenarios.

Maybe I'm just over-complicating the whole thing and just keep the whole app nice and simple.

Thanks for your help.
zardon is offline   Reply With Quote
Reply

Bookmarks

Tags
in app purchase, sqlite

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: 337
12 members and 325 guests
Absentia, Domele, fiftysixty, givensur, heshiming, iGamesDev, linkmx, michaelhansen, PixelInteractive, raihan.zbr, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,117
Posts: 402,891
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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