|
1 år sedan | |
---|---|---|
.. | ||
.sample.json | 1 år sedan | |
PresentCodeRedemptionSheet.cs | 1 år sedan | |
PresentCodeRedemptionSheet.cs.meta | 1 år sedan | |
PresentCodeRedemptionSheet.unity | 1 år sedan | |
PresentCodeRedemptionSheet.unity.meta | 1 år sedan | |
README.md | 1 år sedan | |
README.md.meta | 1 år sedan | |
UserWarningAppleAppStore.cs | 1 år sedan | |
UserWarningAppleAppStore.cs.meta | 1 år sedan |
This sample showcases how to use the Apple App Store extensions for users to redeem subscription offer codes. This allows developers to re-engage with their users by the distribution of out-of-app subscription offers.
InAppPurchasing game object > Refreshing App Receipt script > Normal Subscription Id field
or change the normalSubscriptionId
field in the PresentCodeRedemptionSheet.cs
script.iOS
.
Using PresentRedemptionSheet
on a device, including on the Sandbox, will prompt the user to enter an offer code.
See the documentation for the Unity IAP extension to present the code redemption sheet. Also see the relevant Apple API documentation for more context on this feature. And see the iOS & Mac App Stores document for setting up an Apple project with Unity IAP.
See this tip for testing offer codes end-to-end, using the PRODUCTION Apple App Store server.