SK2 下每次冷启执行一次恢复购买 restore,有啥风险
Asked on 2025-07-28
1 search
在 WWDC 2024 的 "What’s new in StoreKit and In-App Purchase" 会议中,提到 StoreKit 2 提供了许多改进,包括自动执行加密验证和使用现代语言特性来处理任务,如获取产品元数据、购买和检索客户交易历史。关于每次冷启动执行一次恢复购买(restore)的风险,具体的风险并没有在提供的上下文中详细说明。
然而,通常情况下,频繁地执行恢复购买操作可能会导致不必要的服务器请求,从而影响应用的性能和用户体验。此外,过于频繁地调用恢复购买功能可能会导致用户界面上的延迟或其他问题。
为了更好地理解和处理恢复购买的操作,建议查看 StoreKit 2 的文档和相关的 WWDC 会议内容,特别是关于 StoreKit 2 的更新部分。你可以在 What’s new in StoreKit and In-App Purchase (21:06) 中找到相关信息。

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.

What’s new in StoreKit and In-App Purchase
Learn about the latest StoreKit API enhancements to help you deliver great In-App Purchase experiences to your customers. We’ll review new fields added to AppTransaction, Transaction, and RenewalInfo, and updates to In-App Purchase offer codes. We’ll also cover creating signed In-App Purchase requests using the App Store Server Library and updates to merchandising subscriptions using SwiftUI.

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.