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?
Asked
Active
Viewed 1,299 times
0
-
You should use IAP API to check whether he purchased before. See this: http://stackoverflow.com/questions/9992681/in-app-purchase-storing-fetching-user-purchase-history-ios – Raptor May 15 '12 at 06:55
-
I know how to check in app purchase is made or not. But what about my free word. means if i install the app and use free character after if app prompt for in app purchase, i remove the app and again install it. I want to restrict such user. If any how i can know that app was install previously and in app purchase don't made. – Mangesh May 15 '12 at 08:00
2 Answers
3
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.
-
I know how to check in app purchase is made or not. But what about my free word. means if i install the app and use free character after if app prompt for in app purchase, i remove the app and again install it. I want to restrict such user. If any how i can know that app was install previously and in app purchase don't made. – Mangesh May 15 '12 at 08:01
2
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.
-
Thanks Damo, ill Try this later and let you know. I am accepting your ans. – Mangesh May 15 '12 at 09:26