|
1 rok temu | |
---|---|---|
.. | ||
.sample.json | 1 rok temu | |
README.md | 1 rok temu | |
README.md.meta | 1 rok temu | |
RestoringTransactions.cs | 1 rok temu | |
RestoringTransactions.cs.meta | 1 rok temu | |
RestoringTransactions.unity | 1 rok temu | |
RestoringTransactions.unity.meta | 1 rok temu | |
UserWarningAppleAppStore.cs | 1 rok temu | |
UserWarningAppleAppStore.cs.meta | 1 rok temu |
This sample showcases how to use Apple 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 > Refreshing App Receipt script > No Ads Product Id field
or change the noAdsProductId
field in the RestoringTransactions.cs
script.iOS
.
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.
Users should be given the option to restore their transactions via a button, as RestoreTransactions may prompt the user to enter their password and interrupt app flow.
See the Unity documentation as well as the Apple documentation on the topic for more information.