swift和swiftui
How to implement in app purchases & subscription in a SwiftUI application
如何在SwiftUI应用程序中实现应用内购买和订阅
In my latest open source SwiftUI project, AC Helper (an Animal Crossing companion application) that I released on the App Store, I’ve decided to add a monthly and yearly subscription alongside a one time lifetime in app purchase.
在我在App Store上发布的最新开放源代码SwiftUI项目AC Helper(动物穿越伴侣应用程序)中,我决定添加月度和年度订阅,以及一次购买一生的服务。
You can find the source of the project here:
您可以在这里找到项目的来源:
And download the application on the App Store here:
并在以下位置的App Store上下载该应用程序:
Initially I wanted to implement the in app purchase myself using StoreKit
, and I actually had it working, but for subscriptions I had to handle so many edge cases, check the receipt etc…(which should all be built in feature of StoreKit
). And I’ve also I’ve heard so many good words about