-
Notifications
You must be signed in to change notification settings - Fork 535
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
v3 onProductPurchase() called in another activity instead of the current one #503
Comments
Hello, I had the same issue, to fix it , I created this singleton class that automatically holds a reference to the BillingProcessor instance. it should fix your issue, check it out. Here is an example usage below: Example 1:
to use this class, simply use it directly like below. Example 2:
usage: |
@kcochibili pretty sure that singleton is leaking the activity on screen rotation and also the callbacks will stop working |
@svenoaks can you specify where in the Singleton code you think could need improvement to prevent leaking? |
@kcochibili I think calling |
Can you help me build in app billing 3 please؟ |
I have updated to 2.0.0.
I have two instances of BillingProcessor in 2 activities: FirstActivity and SecondActivity. Both activities allow different in-app purchases. However, when FirstActivity calls SecondActivity and a purchase is made on the latter, the onProductPurchase() of FirstActivity is being called. I did not have this issue earlier. Kindly advise.
The text was updated successfully, but these errors were encountered: