Now the examples of metal-cpp are target on desktop and using AppKit which is not supported on iOS. Is there any tips for developing with metal-cpp on mobile device?
Post
Replies
Boosts
Views
Activity
if let status = try await product.subscription?.status {
for state in status {
if (state.state == .subscribed) {
isPro = true
break
}
}
}
When I subscribe with the api product.purchase in my app, every thing work right. The state is updated to .subscribed right after the purchase finished. However, when I manage the subscription in App Store sandbox with a test account. The subscription state does not updated until I manually ask for another purchase in my app. Then a window popup telling me that I have already purchased this product. And then the state of the subscription also updated to .subscribed.
I have also made a update listener to listener all transaction update, just like how SKDemo do. But seems it doesn't receive any update.
Last, could any one tell me that if the update listener also responsible for listening the expiration of a subscription?
I am building a app which only support iOS version over 15.0 and using storekit2 to make in app purchase. I read that by using storekit2 developer no longer need to restore purchase info manually. I wonder if I could dismiss a restore button in my app