lib_unity_purchase/Samples~/Apple App Store - 08 Prompt...
刘涛 0db5615dc0 init 2025-01-20 12:55:54 +08:00
..
.sample.json init 2025-01-20 12:55:54 +08:00
PromotingProducts.cs init 2025-01-20 12:55:54 +08:00
PromotingProducts.cs.meta init 2025-01-20 12:55:54 +08:00
PromotingProducts.unity init 2025-01-20 12:55:54 +08:00
PromotingProducts.unity.meta init 2025-01-20 12:55:54 +08:00
README.md init 2025-01-20 12:55:54 +08:00
README.md.meta init 2025-01-20 12:55:54 +08:00
UserWarningAppleAppStore.cs init 2025-01-20 12:55:54 +08:00
UserWarningAppleAppStore.cs.meta init 2025-01-20 12:55:54 +08:00

README.md

README - In-App Purchasing Sample Scenes - App Store - Promoting Products

This sample showcases how to use the Apple App Store extensions to Promote Products and intercept Promotional Purchases with IAppleExtensions.SetStorePromotionOrder, IAppleExtensions.SetStorePromotionVisibility, IAppleExtensions.ContinuePromotionalPurchases, and IAppleConfiguration.SetApplePromotionalPurchaseInterceptorCallback.

Instructions to test this sample:

  1. Have in-app purchasing correctly configured with the Apple App Store.
  2. Configure a non-consumable product.
  3. Set your own product's id in the InAppPurchasing game object > Promoting Products script > No Ads Product Id field or change the noAdsProductId field in the PromotingProducts.cs script.
  4. Build your project for iOS.
    1. If you are using a simulator with Xcode 12+, follow these instructions to set up StoreKit Testing.

Promoting Products

From Apple's Documentation:

With iOS, users can browse in-app purchases directly on the App Store and start a purchase even before downloading your app. Promoted in-app purchases appear on your product page, can display in search results, and may be featured on the Today, Games, and Apps tabs.

For more information, see Promoting In-App Purchases, and Testing Promoted In-App Purchases from Apple's documentation.