lib_unity_purchase/Samples~/Apple App Store - 06 Gettin...
刘涛 3b87d20391 全部提交 2024-01-29 18:49:33 +08:00
..
.sample.json 全部提交 2024-01-29 18:49:33 +08:00
GettingIntroductoryPrices.cs 全部提交 2024-01-29 18:49:33 +08:00
GettingIntroductoryPrices.cs.meta 全部提交 2024-01-29 18:49:33 +08:00
GettingIntroductoryPrices.unity 全部提交 2024-01-29 18:49:33 +08:00
GettingIntroductoryPrices.unity.meta 全部提交 2024-01-29 18:49:33 +08:00
README.md 全部提交 2024-01-29 18:49:33 +08:00
README.md.meta 全部提交 2024-01-29 18:49:33 +08:00
UserWarningAppleAppStore.cs 全部提交 2024-01-29 18:49:33 +08:00
UserWarningAppleAppStore.cs.meta 全部提交 2024-01-29 18:49:33 +08:00

README.md

README - In-App Purchasing Sample Scenes - Apple App Store - Getting Introductory Prices

This sample showcases how to use Apple extensions to get introductory subscription offer information.

Instructions to test this sample:

  1. Have in-app purchasing correctly configured with the Apple App Store.
  2. Configure a subscription product.
  3. Follow Set an introductory offer for an auto-renewable subscription to set up introductory pricing for the subscription.
  4. Set your own product's id in the InAppPurchasing game object > Getting Introductory Prices script > Subscription Product Id field or change the subscriptionProductId field in the GettingIntroductoryPrices.cs script.
  5. Build your project for iOS.
    1. If you are using a simulator with Xcode 12+, follow these instructions to set up StoreKit Testing.

Getting Introductory Prices

From Apple's documentation:

Apps with auto-renewable subscriptions can offer a discounted introductory price, including a free trial, to eligible users. You can make introductory offers to customers who havent previously received an introductory offer for the given product, or for any products in the same subscription group.

IAppleExtension.GetIntroductoryPriceDictionary returns a dictionary of JSON encoded strings keyed by productIds.

For more information about Apple's introductory pricing for subscriptions, see Implementing Introductory Offers in Your App .