views:

116

answers:

3

Hi,

How to store information in iPhone so that it cannot be removed when application removed. For example to indicate if user already used all trial features. I tried to use [NSUserDefaults standardUserDefaults] - but it refreshed each time app deleted.

Thanks in advance

+3  A: 

Apple doesn't allow you to do this. If Apps could leave files after they are uninstalled then you could have your disk fill up with no way to actually get rid of the stuff.

Squeegy
+3  A: 

Some applications handle this by retrieving the device's unique identifier (UDID) and storing it one their servers. If the server sees the same UDID twice from the application's validation step, deny validation.

Michael Petrotta
I don't think this would fly with the App Store reviewers, though.
Can Berk Güder
+2  A: 

I think it’s possible to store such data in the keychain, see this forum. I also think it’s evil to do such a thing, as you are fighting the user, but it’s your choice.

zoul