1

Is there a way to check if my app was installed before? My app should offer half a year free of its services. Expandable via In App Purchase. I want to prevent the user from deleting my app and just re-downloading it.

I know there is a way to determine if my app is already installed (updates) (e.g. via variables in the NSUserDefaults). But what if the user deletes it first?

3
  • I'm sorry: My app runs on the iPhone
    – david
    Jun 25, 2010 at 8:57
  • Apple frowns on time-limited functionality, so your application will probably be rejected if it disables itself after a certain duration.
    – Brad Larson
    Jun 25, 2010 at 12:44
  • Well it just provides a calendar for one year. It's not disabled after that. Its just useless. Apple approved the first version of it.
    – david
    Jun 26, 2010 at 9:59

2 Answers 2

1

To make things even more complicated, you probably want to catch uses on different devices as well, and enable the purchases on all devices once they bought your in-app goodie.

Sharing the purchase on their devices will work, but testing if ever installed is not possible. You could store device IDs on your server, but this wouldn't catch the different devices issue.

Your options are to either force users into creating an online account and share data using this. This works best if the user stores a lot of his own data that need to be synchronized, as otherwise several accounts will circumvent this approach. The other option is to make the test period much shorter and rethink your pricing. Deleting and reinstalling will be very annoying, especially if they needed some time to configure the app to their needs. You trade some hardcore-deleter-redownloaders for those who will stop using your app after some months and won't buy your in-app extra then anyway.

1
  • Well making the test period shorter came to my mind too. But my app (a calendar) uses one year terms and changing that will require a lot of work :P Server side authentication seems a bit over the top for my little app :) It seems like there is some work ahead of me :P
    – david
    Jun 25, 2010 at 9:12
0

You can use the keychain for that -- the entries aren't deleted when the application is deleted -- but it's not really guaranteed to work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.