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 11-05-2011, 09:14 PM   #1 (permalink)
Registered Member
 
mediaspree's Avatar
 
Join Date: Sep 2011
Posts: 179
mediaspree is on a distinguished road
Default New Install or Update - Can you tell?

I have an app in the app store. I want to release an update. For existing users that download the update I want to set a variable to TRUE. For new users, or first time downloaders of the app the variable would be defaulted to FALSE and can be set to TRUE with an in-app purchase. Is this possible? (the setting of the variable to true unlocks content)

Last edited by mediaspree; 11-05-2011 at 09:18 PM.
mediaspree is offline   Reply With Quote
Old 11-05-2011, 11:39 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 280
dapis is on a distinguished road
Default

Quote:
Originally Posted by mediaspree View Post
I have an app in the app store. I want to release an update. For existing users that download the update I want to set a variable to TRUE. For new users, or first time downloaders of the app the variable would be defaulted to FALSE and can be set to TRUE with an in-app purchase. Is this possible? (the setting of the variable to true unlocks content)
I'm not too sure if I understand what you want to do, but I do keep a version flag in my own apps so that the upgrade on its first run knows whether the user is a new one or was the user of a previous version. But if you haven't set anything up in advance, I'm, not sure it's so simple.

But I guess when the upgrade makes its first run it can check to see if some particular data (a setting say) has been changed from its default value, and if so then it knows that this is not the first of the app itself.
dapis is offline   Reply With Quote
Old 11-06-2011, 07:56 AM   #3 (permalink)
Registered Member
 
mediaspree's Avatar
 
Join Date: Sep 2011
Posts: 179
mediaspree is on a distinguished road
Default

Quote:
Originally Posted by dapis View Post
I'm not too sure if I understand what you want to do, but I do keep a version flag in my own apps so that the upgrade on its first run knows whether the user is a new one or was the user of a previous version. But if you haven't set anything up in advance, I'm, not sure it's so simple.
That is pretty much exactly what I want to do but as you say I haven't set anything up in advance.
mediaspree is offline   Reply With Quote
Old 11-06-2011, 07:58 AM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Do you have anything stored in NSUserDefaults that you are certain will exist (be set) in all previous versions of your app?
baja_yu is offline   Reply With Quote
Old 11-06-2011, 08:59 AM   #5 (permalink)
Banned
 
Join Date: Nov 2011
Posts: 2
ElCorteIngles is on a distinguished road
Default

try to do it
ElCorteIngles is offline   Reply With Quote
Reply

Bookmarks

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: 403
17 members and 386 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, dre, FrankWeller, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, n00b, pbart, reficul, Retouchable, Sami Gh, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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