I’ve got RevenueCat and SuperWall integrated into an older app and I can’t seem to get any of the method callbacks to work without setting observerMode to true on RevenueCat. I’m not handling my own purchases and I want RC to do it for me, so I don’t think that is the right setting… but ti does seem to work and unlock the app in sandbox mode when I do it that way.
My SuperWall has a paywallDelegate configured for it where we hand the purchases over to RevenueCat. In that delegate I call the following method on Purchases.shared:
For some reason when observerMode is false the PurchaseCompletionBlock just never get’s called. Not even with an error or nil value… When I turn observerMode to true everything works as expected but I’m confused why that should be. Am I reading the documentation wrong? Is there something going on with my SuperWall configuration where it’s somehow making the purchase?
I’ve used the same configuration in other apps and that seems to work fine with observerMode off. I’m not sure what I'm doing different in this implementation.
Page 1 / 1
Hi, can you let me know if you run debug logs if you are getting any errors? And what language and version of our SDK are you using?
Hi, yes I’m running the debug logs and here is what I see:
2023-08-31 13:36:17.658584-0700 Assembly144940:5891867] 4purchases] DEBUG: StoreKit1Wrapper (0x0000000281e3b3c0) removedTransaction for com.pixite.assembly.1weekP but no callbacks to notify
2023-08-31 13:36:18.108958-0700 Assembly044940:5891761] 1purchases] DEBUG: StoreKit1Wrapper (0x0000000281e3b3c0) removedTransaction for com.pixite.assembly.1weekP but no callbacks to notify
2023-08-31 13:36:40.223674-0700 Assembly044940:5892096] spurchases] DEBUG: StoreKit1Wrapper (0x0000000281e3b3c0) removedTransaction for com.pixite.assembly.1weekP but no callbacks to notify
It seems like the “removedTransaction for com.pixite.assembly.1weekP but no callbacks to notify” might be important?
Here is what the code calling the purchase looks like:
The first breakpoint at line 138 gets hit, but the breakpoint in the completion block at line 139 is never hit. Could there be an issue with the fact that we’re wrapping StoreKit1 products?
I use this exact same logic in several of our other apps and they work as expected. I’m not sure what’s going on in this one.
@Haley Pace I forgot to mention: I'm running the revenuecat pod version 4.25.8 and compiling on Xcode 14.3.1 with a minimum target of iOS 15.2.
Hey, sorry about the delay. I didn’t realize this post was still unresolved. Are you still experiencing this issue?