Skip to content
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

Cant do a second purchase, after first success. #1115

Open
5 tasks done
Shabinder opened this issue Jul 1, 2023 · 5 comments
Open
5 tasks done

Cant do a second purchase, after first success. #1115

Shabinder opened this issue Jul 1, 2023 · 5 comments

Comments

@Shabinder
Copy link

Describe the bug
After we have successfully purchased one product, and then try to complete another purchase of same or different product.
in same session, leads to happening nothing and any further purchases wont work since, we get The operation is already in progress

Doesn't get fixed until we restart the app.

  1. Environment
    1. Platform: Android
    2. SDK version: 6.5.2
    3. OS version: 13
    4. How widespread is the issue: all I could test on.
@Shabinder Shabinder added the bug label Jul 1, 2023
@RCGitBot
Copy link
Contributor

RCGitBot commented Jul 1, 2023

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@Shabinder
Copy link
Author

Shabinder commented Jul 1, 2023

log(LogIntent.PURCHASE, PurchaseStrings.PURCHASING_PRODUCT.format(googlePurchasingData.productId))

I do get logs on second purchase till this point.

Could the next line synchronized block could be the cause ?

Since my purchase's callbacks are not invoked for the second purchase.

@tonidero
Copy link
Contributor

tonidero commented Jul 3, 2023

Hi @Shabinder, unfortunately I wasn't able to repro. I was able to purchase multiple products (or the same one after the first subscription expires if it's a subscription). I'm not sure what's happening since the This operation is already in progress error log means that the process should be cut before getting to the Purchasing product: ... log.

Could you send us debug logs of this situation happening so we can better debug the issue?

@Shabinder
Copy link
Author

Simple logcat or any specific command / process to get debug logs ?

@tonidero
Copy link
Contributor

You can enable debug logs by doing Purchases.logLevel = LogLevel.DEBUG BEFORE configuring the SDK. Docs here: https://www.revenuecat.com/docs/debugging

Once you do that, you can filter logcat logs that include [Purchases] and send them to us. Feel free to create a support ticket and it that way if you prefer, while linking to this issue.

@vegaro vegaro removed the bug label Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants