-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug purchasing product #4020
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Hey @jesus-mg-ios, off the top of my head I imagine what might be happening is that you have the time rate for accelerated subscriptions set to a very fast value (like a renewal every 2 seconds), and that it being set to that fast a renewal rate just means that we get throttled by Apple APIs and can't get a new receipt in time, leading to the issues. This is based off of the fact that you also have a lot of transactions getting finished at the same time in the logs. Setting that to a lower value, like a renewal every 5 mins, you shouldn't be able to reproduce. And in production, that should never happen, of course, since renewals take days / weeks / months / years instead of seconds. Even in TestFlight / regular Sandbox they last a few mins. Let me know if that's not the case! |
@jesus-mg-ios ohh interesting, thanks for getting back to me. In that case I think it might have more to do with the amount of transactions in your sandbox account, seems like there's a lot to process right off the bat and sandbox can misbehave. Does this happen to you if you use a different sandbox account? |
I've cleared the user's data, and after making 4-5 purchases, the issue appears (which could happen in production). It might be worth examining the code that manages transactions. It seems related to an inconsistent internal cache, state or data race, because it’s unlikely that RevenueCat would initially indicate a purchase without showing the Apple purchase sheet, only to correct itself 2-3 seconds later. @aboedo |
What app or test software is that where it shows the renewal rate options? |
@XericDesign you can find it in Xcode or in Sandbox user section "appstoreconnect.com " |
@aboedo are there any updates on it? |
Describe the bug
Users on a non-production environment (we don't know if it's happening in production) enter the paywall and then push the button to pay. Without showing the purchase sheet, RevenueCat says, "Oh, it's purchased." Then, the next screen appears. However, 2 or 3 seconds later, RevenueCat updates the status and says, "Hey, there's no subscription." If the user goes to pay again, the Apple sheet appears, prompting the user to enter the sandbox account credentials to complete the subscription payment.
usesStoreKit2IfAvailable(true)
)Purchases.logLevel = .verbose
will help us debug this issue.Steps to reproduce, with a description of expected vs. actual behavior
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: