Reputation: 27683
How can I grant an in-app purchase to a user without having the user need to go through the steps of "buying" it from the store. The IAP is free.
I want to do this from within the app, and without needing a web service. Something like CurrentApp.GiveThisUserTheProduct(string productId)
.
Upvotes: 2
Views: 73
Reputation: 3904
You could store the "purchase" as a local value in the local settings collection or in a "license file" on disk.
When the user accesses the feature you'll check against that stored value whether or not that user is allowed access.
Later if the user tries to buy the feature you can check whether the user already have it by checking the local value and show a message explaining it's already enabled.
Upvotes: 1