Updating Your App: How It Effects Saved Attributes
Hey everyone,
Ok, so I'm working on an update to one of our apps in which I am referencing the value of an attribute created and stored in the first version of the app. When the user updates the app on their device, will that attribute (integer) be overwritten?
Basically what I'm wanting to do is make one of our paid apps free, starting with this update. But, if the user downloaded the first, paid version, I obviously want them to have the unlocked version and not have to pay twice for it. In the first version of the app, I included an attribute that keeps track of how many times the app has been opened, and saves that value at launch every time. The default value for this attribute is zero. So, in my loading scene, In the updated version, I've added a rule that says:
If game.AppLaunchCount = 0
User gets free version of app
Otherwise if game.AppLaunchCount > 0
User gets pro version of app
I also have a new variable introduced in the updated version of the game that only allows the rule above to run once - the very first time the new version is opened to determine which version (free or paid) the user will get.
Do you see any issues with this setup? Is this kind of logic something GameSalad supports between versions of apps available on the App Store? Any feedback would be great! Thanks everyone.
- Alex
Ok, so I'm working on an update to one of our apps in which I am referencing the value of an attribute created and stored in the first version of the app. When the user updates the app on their device, will that attribute (integer) be overwritten?
Basically what I'm wanting to do is make one of our paid apps free, starting with this update. But, if the user downloaded the first, paid version, I obviously want them to have the unlocked version and not have to pay twice for it. In the first version of the app, I included an attribute that keeps track of how many times the app has been opened, and saves that value at launch every time. The default value for this attribute is zero. So, in my loading scene, In the updated version, I've added a rule that says:
If game.AppLaunchCount = 0
User gets free version of app
Otherwise if game.AppLaunchCount > 0
User gets pro version of app
I also have a new variable introduced in the updated version of the game that only allows the rule above to run once - the very first time the new version is opened to determine which version (free or paid) the user will get.
Do you see any issues with this setup? Is this kind of logic something GameSalad supports between versions of apps available on the App Store? Any feedback would be great! Thanks everyone.
- Alex
Comments
Say I want to know if user pressed A or B(before update). I assigned game.button, assigned a save key/load key for the first version while game.button didn't do anything yet, just want to use it for future reference.... and after an update, I added new rules ..check if game.button = A display "hello world" .. and the new version would have retained the game.button value(in this case "A") from previous version and display a "hello world" for the user. but not before the user updates, because GS games can't access external servers just yet.
hope i'm helping.
But you did answer my question. Basically, I wanted to make sure, in your example, that game.button would not lose it's value (if saved and loaded correctly) after an update. I hope that makes sense, and thanks for your help!
- Alex