- Home /
How to offer ad-free version of game on android?
Please help me, I have developed an android game and implemented ads in it. Now I want to offer an adfree in-app purchase in the game but don't have any idea for how to do that. I can use PlayerPrefs but that can create problem if user uninstall and then reinstall the game. I can also upload an entire adfree version of game on playstore but when user buy that and installs, whole progress will be lost. Can you suggest me any way or any Google Play feature that helps me out with this problem. Thank you.
Answer by Rhiojin · Mar 02, 2016 at 04:30 PM
Depending on your level of programming knowledge this can be easy or hard. You can search around for IAP plugins for unity android or make your own. In either case once its all set up you can allow a user to buy to remove ads. A record of this can be set in playerpref ( a simple int: 0 or 1).
Google saves all transactions for a user so If a user were to uninstall and reinstall your app they can use the restore purchases functionality that is either provided by the plugin or implemented yourself and then you can use that purchase flow to update your app and playerpref.
Here is a search querty for iap plugins on the asset store: https://www.assetstore.unity3d.com/en/#!/search/page=1/sortby=relevance/query=iap
And here is a link to a free plugin. Note that I havent used this personally, its just the first free one I spotted: https://www.assetstore.unity3d.com/en/#!/content/52851
Your answer
Follow this Question
Related Questions
In App Purchases for Unity 4.6 0 Answers
Require In App Billing suggestions for android 2 Answers
facebook integration with unity iphone games 1 Answer
Is there any way to restore consumable in-app-purchases after uninstalling the app? 4 Answers
Anybody knows android inapp purchase detailed tutorials/documentation? 1 Answer