views:

611

answers:

3

Is there a way in the iPhone sdk to get the name of the contact who own's the phone? I see that my app has been cracked, and I would like to update a release which checks to see if it a cracked version and then display the following:

Hello (Persons name). I see you are using a cracked version of (Application Name). If you like this application, please support the me by purchasing it.

+1  A: 

That's not available because that's a privacy issue.

(I know, there's some irony there, considering your user just cracked your app, but I digress...)

There's lots of discussion about anti-cracking measures. ArsTechnica has a story about one developer. Try Google or Apple's Dev Forums (thread).

Shaggy Frog
+4  A: 

StackOverflow: Reducing Piracy of iPhone Applications

Alex Reynolds
+4  A: 

Like previous poster mentioned, you can't get the user's name. You can, however, get the phone number by doing

[[NSUserDefaults standardUserDefaults] objectForKey: @"SBFormattedPhoneNumber"]

Taken from here

Also regarding copy-protection: problem with iPhone app copy-protection is that Apple does not provide public docs for distribution format or anything even remotely related. So if you base your checks around those undocumented things, you are really juggling on a mine field. Ultimately Apple should really fix this broken system.

ttvd