Mangesh
Mangesh

Reputation: 2285

how to know app was priviously install on ios device?

There is any way for identify that user is installing my app again? Actually in my app i have a feature user can translate some word for free but after that he have to pay. I am using in app purchase for same. But what if user delete app and install again ? he will be able to translate again for free.How to know app was previously install on that device?

Upvotes: 0

Views: 1312

Answers (2)

Damo
Damo

Reputation: 12890

Some implementations of in app purchases use the keychain to record purchase flags or freebie flags as you mention.

This blog entry will show you how to store and retrieve something from the keychain.

This approach really doesn't to my mind sit well with the principal of sandboxing an application so I expect it's frowned upon by Apple and by purists but if you search SO then you will find other posts relating to in app purchases and using the keychain.

See this answer as it seems to be pretty definitive on the subject.

Upvotes: 2

ugur
ugur

Reputation: 842

Application goes to the App Store for in app purchases. If user has already bought that item, it returns true to your request. User won't pay it again each time.

diagram

Upvotes: 3

Related Questions