-
Notifications
You must be signed in to change notification settings - Fork 536
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
Retrieves listOwnedProducts only when in background #550
Comments
Oh I missed to tell the part how I came to try this solution.. android-inapp-billing-v3/library/src/main/java/com/anjlab/android/iab/v3/BillingProcessor.java Line 130 in a13bb21
Which I don't even know why somhow rang my bell and I tried to "background" the app while the process. And voila - it helped... Does this not happen in production? I mean i got a version of older anjlab billing plugin on google play and there it works great. |
Guys, i am not lying - this is some weird stuff here. My purchased products get retrieved only when i close the app or turn the phone's screen off. |
Okay seems like i used it wrong all the time. This is what works now each time:
|
Hi there,
Recently I upgraded my app from SDK 29 to 34 and something weird happens:
I came along a weird bug. (@serggl I feel like you could be interested).
I had problems for two days to retrieve owned Products from this library. Sometimes it worked, but in 95% cases it did not work and my app told me whole time that I have nothing purchased yet.
You say here, that this gets called when everything is loaded from the history:
@Override public void onPurchaseHistoryRestored() { /* * Called when purchase history was restored and the list of all owned PRODUCT ID's * was loaded from Google Play */ } }
But that is not true, it gets called every time, but when in background, it retrieves the items everytime and when in foreground, then the items are empty.
This is my code at the start of the app inside my SplashActivity.java:
Now with normally screen on and app deployed the Logs are following:
BUT with screen off during installation of the app to the device, i got following Logs:
Can you anyone tell me if this is correct? I don't have the feeling this is right. Also I don't wanna push this into release... It doesn't retrieve the purchased products!
Using version: 2.2.0
The text was updated successfully, but these errors were encountered: