74 questions
-2
votes
0
answers
27
views
Promotion offer purchase error | An unknown error occurred | SKErrorDomain 0 | ASDErrorDomain 3903 | AMSErrorDomain 305
Env:
Already working application that has working subscriptions
Configured promotion offer and subscription key, but have not yet released the new app version
Synced .storekit file in Xcode. It ...
0
votes
0
answers
398
views
Issue with StoreKit 2 In App Purchases: "unfinalized statements / unfinished backups" SQLite Crash
I’m running into a persistent error while implementing StoreKit 2 renewable subscriptions in my SwiftUI app.
Context
I have a two-screen flow:
Screen 1: user selects a subscription plan (monthly / ...
1
vote
0
answers
146
views
StoreKit2 AppTransaction.shared verification on macOS
I used to use Receigen to generate receipt-validation code, but since Apple has deprecated exit code 173, everything is being adapted to StoreKit2. Following a similar approach to https://developer....
1
vote
0
answers
86
views
Subscription Unavailable in sandbox environment configuration
I'm trying to run app from Xcode on real device with sandbox mode. What I've tried so far:
Locally:
iPhone reset using: Reset All Settings
Developer mode on device is Enabled
Settings > My Name &...
1
vote
1
answer
145
views
Purchase quantity is ignored in in_app_purchase_storekit
I'm using Flutter's in_app_purchase_storekit package (StoreKit 2) to allow purchasing multiple quantities of a consumable product on iOS.
According to Apple’s official documentation, StoreKit 2 ...
-1
votes
1
answer
46
views
Get Appirater to work with Storekit2 and 2025 versions of IOS such as 18?
I am updating an app that used Appirater to prompt the user for reviews. Appirater was introducted before SKStoreReviewController but according to the documentation from six years ago, it ...
0
votes
1
answer
187
views
How to Simulate Subscription Cancellation with Products.storekit in Simulator?
Currently, instead of using a real device and test account for in-app purchase testing, we are using Products.storekit with the Simulator.
Our app offers a subscription plan with a 3-day free trial.
...
0
votes
0
answers
32
views
iOS extract renew date for a subscription
I am developing an iOS application which offers in app purchases in the form of subscriptions. I want to extract the renew date and the free trial end date of a given active subscription, if possible.
...
0
votes
1
answer
282
views
Supporting in app purchases from the App Store. SKPaymentQueue deprecated. Use purchase(confirmIn:options:)
I have a purchase manager class and an entitlement manager class. Everything is working great, but this code is not working.
init(entitlementManager: EntitlementManager) {
self.entitlementManager =...
-4
votes
1
answer
573
views
Why do I need to validate receipt using storekit2? [closed]
I’m using storekit2 in swift to handle subscriptions and I’m told that I need to validate receipts from apple on the sever side using node js. Why do I need to do this? Doesn’t storekit2 already ...
-3
votes
1
answer
103
views
How can I tell when someone cancels a subscription?
I’m using storekit2 to allow people to purchase subscriptions in my iOS app. I have a node js server backend. How can I tell if someone cancels a subscription ? And which user did so?
0
votes
0
answers
81
views
AX Lookup problem - errorCode:1,100 error:Permission denied portName:'com.apple.iphone.axserver' when dismissing .manageSubscriptionSheet StoreKit2
I am running Xcode 16.2 with iOS 18.2. I'm getting the following error when dismissing the .manageSubscriptionSheet (by clicking "x" in the upper right corner). It happens when testing on a ...
1
vote
0
answers
873
views
How to validate a receipt on server side with StoreKit 2?
I am using Storekit-2 for InApp purchase. The product is consumable. After the purchase is successful, I need to call API and backend will grant 200 coins to that user.
Now, users can try to access ...
1
vote
0
answers
180
views
Is it necessary to keep Transaction listener for consumable purchase in StoreKit 2?
I am implementing consumable purchase e.g. user can buy 200 coins for $1.99 anytime. I have implemented purchase flow but Xcode is giving me following warning:
Making a purchase without listening for ...
0
votes
0
answers
139
views
C++ wrapper for store kit 2 in Xcode
I have C++ project in Xcode 15.3 for macOS 12+. I'm trying to use store kit 2 by doing the following:
Create a .Swift file, and then a "bridge" .mm file with function signatures compatible ...
1
vote
1
answer
385
views
StoreKit Product.products(for:) works inconsistently: Task.detached resolves the issue—why?
I’m implementing in-app purchases using StoreKit in my SwiftUI app, but I’ve encountered an issue where Product.products(for:) inconsistently returns an empty array. No errors are thrown, and ...
0
votes
1
answer
153
views
fullscreenCover inside NavigationStack is redrawn when Apples subscription controller is presented
I have a NavigationStack, inside which there is a button. Tapping on the button presents Apple's SubscriptionStoreView inside fullScreenCover . I was surprised that when I tap on "Subscribe" ...
4
votes
1
answer
430
views
StoreKit2 subscriptionStorePolicyDestination popup view not rendering as expected
Have recently started adapting parts of my app to SwiftUI, and StoreKit2 is solving a lot of problems with its simplicity and ease of implementation.
I've hit an issue with the Privacy Policy and ...
13
votes
4
answers
5k
views
StoreKit Configuration File doesn't sync for newly created App in Xcode 16
I created a new App in AppStoreConnect and set subscriptions informations for it.
Then
I open the corresponding project in Xcode 16
Create a new StoreKit Configuration File
Chose to sync with App ...
1
vote
0
answers
279
views
Transaction list for IAPs in StoreKit2 always shows two transaction after renewal. Why?
I have an app with one subscription to buy. Buying works fine and renewal seems to work fine, too.
I am observing transaction for this IAPin the background. To understand what is happening in the ...
0
votes
1
answer
505
views
How do I listen to restore purchase response in Storekit 2?
I'm trying to restore an individual purchase under iOS 17 and StoreKit 2. After tapping the restore button I need to download a file to complete the necessary restore process.
How do I listen to a ...
1
vote
0
answers
139
views
Reiteration of Transaction verification
Trying to reduce the amount of transactions IDs. Currently, it seems to check the transaction ID every second. I want to avoid that.
here is my code:
import SwiftUI
import StoreKit
import OSLog
...
0
votes
1
answer
534
views
Use storeButton in a ProductView
I use a StoreKit2 ProductView to display a product (there is only one). I want to display a button for restorePurchases via storeButton using
.storeButton(.visible, for: .restorePurchases, ....
0
votes
0
answers
159
views
Configuring Exclusive Free Trial Period for iOS Application
I am currently working on an iOS application using StoreKit2 and I have encountered a challenge related to In-App Purchases (IAP). Specifically, I have two products, namely com.myProduct.monthly and ...
0
votes
0
answers
348
views
Subscriptions are not showing up once IPA got created in iOS In App Purchase StoreKit2
I have implemented In App Purchase using Apple's StoreKit framework. I have created a .storekit file inside Xcode and synced all the subscriptions from App Store Connect. When I do connect my device ...