iOS SK2 中,折扣优惠必须添加 app account token 吗
Generated on 5/27/2025
3 searches

This post is brought to you by Tailscan,
the best devtool for Tailwind CSS.
In iOS SK2, it is not explicitly required to add an app account token for discount offers. However, using an app account token can be beneficial. For example, when you receive App Store server notifications for a purchase, you can use the app account token to link the transaction data to the customer without requiring the device. This can help in managing and tracking promotional offers and transactions more effectively.
For more details on how to implement this, you can refer to the session Explore App Store server APIs for In-App Purchase at the timestamp 20:55.

Explore App Store server APIs for In-App Purchase
Learn how to leverage your server to build great In-App Purchase experiences with the latest updates to the App Store Server API, App Store Server Notifications, and the open source App Store Server Library. After a recap of current APIs, we’ll introduce updated endpoint functionality, new transaction fields, and a new notification type. We’ll also discuss best practices for the purchase lifecycle, delivering content, and targeting offers, so you can become a server power user.

What’s new in StoreKit and In-App Purchase
Learn how to build and deliver even better purchase experiences using the App Store In-App Purchase system. We’ll demo new StoreKit views control styles and new APIs to improve your subscription customization, discuss new fields for transaction-level information, and explore new testability in Xcode. We’ll also review an important StoreKit deprecation.

Implement App Store Offers
Learn how to engage customers with App Store Offers using App Store Connect, as well as the latest StoreKit features and APIs. Discover how you can set up win-back offers (a new way to re-engage previous subscribers) and generate offer codes for Mac apps. And find out how to test offers in sandbox and Xcode to make sure they work smoothly.