This sample showcases how to use the Google Play Store extensions to restore transactions. This allows users to be granted Non-Consumable and Subscription products they already own after reinstalling the application.
InAppPurchasing game object > Restoring Transaction script > No Ads Product Id field
or change the noAdsProductId
field in the RestoringTransaction.cs
script.Android
and make sure the GooglePlayStore
is selected*.Services > In-App Purchasing > Configure
and changing the Current Targeted Store
field.When a user reinstalls your application they should be granted any Non-Consumable or renewable Subscription products they already own. App stores maintain a permanent record of each user’s Non-Consumable and renewable Subscription products which Unity IAP can retrieve.
On the Google Play Store, Unity IAP automatically restores any products the user owns during the first initialization
following reinstallation; the ProcessPurchase
method of your IStoreListener
will be called for each owned item.
See the documentation on the topic for more information.