My Environment:
- iOS 17
- SwiftUI
- RevenueCat 4.33.0
- Xcode 15.2
My Problem:
- I have set up two subscriptions in Apple App Store Connect and RevenueCat according to the documentation with one entitlement (“pro”), 2 products, packages and one offering.
- I have configured a paywall in the RevenueCat dashboard.
- In App Store Connect, I have configured Sandbox test users.
- In my App I use Sign-in with Apple to sign in with the test user and I use the Apple user ID to sign-in with the RC appUserID.
- In the RC debug overlay, I see the correct user ID and the former anonymous user ID.
- When I open the RevenueCatUI PaywallView in my App running in the simulator, I see the 2 offered subscriptions. Then I click the buy button and the Apple purchasing dialog opens with the chosen subscription for the Sandbox User.
- When I click to buy the subscription, I hear a “bing” sound (normally indicating a purchase). Then the Apple purchase dialog disappears and a progress indicator is visible in the purchase button of the RC PaywallView(). After some seconds, the Apple purchase dialog re-appears. I can repeat this several times…
- When I cancel the Apple purchase dialog and go back and check the entitlements in the RC debug overlay, there are no active entitlements (also not after closing and reopening the app).
- The purchases() functions of the PurchasesDelegate are not called.
- The only RC debug log output I see from clicking the RC PaywallView() purchase button on is:
2024-02-02 14:47:18.562270+0100 MyApp226950:1241147] 6purchases] INFO:
Purchasing Product ‘myapp_pro_1y_freeintro_1w' from package in Offering 'pro_default'
2024-02-02 14:47:18.562430+0100 MyApp826950:1241147] Apurchases] DEBUG:
Adding payment for product ‘myapp_pro_1y_freeintro_1w'. 0 transactions already in the queue.
2024-02-02 14:47:18.822508+0100 MyApp426950:1241147] 1purchases] DEBUG:
StoreKit1Wrapper (0x0000600002610540) updatedTransaction: myapp_pro_1y_freeintro_1w 0
What’s wrong with my setup? I’ve tried several things already, but without success...