Apple product details reference
Explore the methods you can use to read Apple App Store product details and check whether a player can redeem an introductory offer.
Read time 2 minutesLast updated 8 days ago
On the Apple App Store, returns the details of the products that Unity IAP has fetched, including introductory offers for subscriptions. To access the service, use , or in IAP 5.5 and later, . On other platforms, these properties return .
IAppleStoreExtendedProductServiceStoreController.AppleStoreExtendedProductServicePurchasingController.AppleStoreExtendedProductServicenullProduct details methods
The following methods each return a dictionary keyed by product ID, where each value is a JSON string with that product's details:
Method | Description |
|---|---|
| Returns the details of each fetched product, such as its localized title, description, and price. For subscription products, the details include the introductory offer. |
| Returns the introductory offer details of each fetched product, such as the introductory price and the number of periods it applies to. |
Unity IAP uses StoreKit 2 on iOS 15 and later, tvOS 15 and later, macOS 12 and later, and visionOS. With StoreKit 2, the details of each subscription product in both dictionaries also include . Its value is when the player can redeem the introductory offer. Both methods return the introductory offer even when the player isn't eligible, so check before you present the offer.
isEligibleForIntroOffer"true"isEligibleForIntroOfferBoth methods return the products from every fetch, not only the most recent one. If you fetch a product again, its entry contains the latest details. When the signed-in player changes, Unity IAP clears both dictionaries if you've attached an handler to the store. For more information, refer to Handle an account change.
OnAuthAccountChanged