I have an application currently on the app store which I intend to submit an update for soon.
With this update I want to add code which will tell the app when it first runs application:didFinishLaunchingWithOptions whether it is:
- A new install from the app store.
- Newly updated from a previous version
There is no code in the app currently in the app store to handle this.
The application uses a SQLite database, but for reasons I won’t go into here I don’t want to use a check for its existence as a solution to this problem.
As a side question, without storing the data manually, is there an SDK I can use to query when an app was installed onto a device? (Preferably iOS 3.0 compatible)
I have seen a similar question, but none of the answers apply to working with existing app store code.
You could save a version number to
NSUserDefaults, and update it accordingly.If that won’t work, you may be able to release an intermediate version which introduces the versioning scheme.
If that’s not an option, you may be able to check for traces of previous runs from files you create, or preferences which you set conditionally or lazily.