Questions tagged [billingclient]
24 questions
8
votes
1 answer
querySkuDetailsAsync is returning empty list with BillingResult code SERVICE_UNAVAILABLE
After upgrading the BillingClient to 3.0.0, I started getting about 20% users seeing SERVICE_UNAVAILABLE when querying for in-app purchase. The skuDetailsList is also empty. According to the docs, SERVICE_UNAVAILABLE implies network is down, but how…

ono
- 2,984
- 9
- 43
- 85
4
votes
2 answers
Android Google Billing Client - onSkuDetailsResponse Always Empty List
I was wondering could you help. I followed the instructions at https://developer.android.com/google/play/billing/integrate, but I cannot seem to get the purchase flow working. The billing seems to setup ok, but when I try to query for my in-app…

Graham Baitson
- 580
- 1
- 11
- 29
3
votes
0 answers
Android: why does BillingClient queryPurchasesAsync() return an empty list after app reinstall?
I am adding an in-app purchase feature into my Android app. I tried the following behaviour on an emulator:
Launched the app and faked an in-app purchase (using the SKU android.test.purchased)
Ensured that the in-app purchased was validated and…

John DoeDoe
- 133
- 1
- 7
3
votes
2 answers
Android - BillingClient returns empty purchases list
Some of my users tell me that my app forgets the purchased subscriptions every now and then. It works for 3-4 days and then it forgets them. This is a very important issue as users might suspect fraud. I am using billing library 4.0.0 and I have…

Anonymous
- 4,470
- 3
- 36
- 67
3
votes
1 answer
Billing Flow not launching
I've been at this for a week. I cannot get the billing flow to launch, please help!. Thanks. I'm not getting any errors. From what I can tell it is never hitting the "public void onSkuDetailsResponse" method.
I've tried to strip my entire app down…

branedge
- 115
- 3
- 14
3
votes
1 answer
When to call BillingClient.endConnection()?
From Google doc, it mentions
When you are done with this object, don't forget to call endConnection() to ensure proper cleanup. This object holds a binding to the in-app billing service and the manager to handle broadcast events, which will leak…

Joanne Chang
- 75
- 1
- 9
3
votes
1 answer
How to restore purchases on a second device (INAPP and SUBS)
I have the following situation:
A user purchases a subscription on an app on his device A. Later on, he buys a device B and configures it with the same account of device A. He installs that same app on device B, but the purchase he made on device A…

Augusto Carmo
- 4,386
- 2
- 28
- 61
1
vote
0 answers
How long does Android BillingClient store results offline, for onQueryPurchasesResponse?
I am currently testing my integration of BillingClient.
One of the tests is to close all internet connections of the mobile phone.
I did expect that this will create a call to onBillingServiceDisconnected().
But it doesnt. So clearly there is no…

MatthiasL
- 81
- 6
1
vote
0 answers
billingClient.startConnection doesn't work
billingClient.startConnection doesn't run any listener.
It worked fine a few hours ago....
Have anybody an experience this case?

kr zak1ller
- 11
- 2
1
vote
0 answers
When switching Layouts in Android-studio, how to go back if there was no layout when app started? Or how to un-set a new layout?
I‘ve developed a game in Love2d (Lua), and used love-android as the tool to make it run on android-studio. The game works perfectly in Android devices, so now I’m trying to add billingclient.
My problem is, the Project created by love-android has…

Castelo3442
- 11
- 1
1
vote
2 answers
Android - Context for BillingClient inside Fragment
I have a single activity application (java) and one of the fragments contains Subscription buttons. I'm setting up the Google Play Billing Library but when I set up the following:
private BillingClient billingClient =…

cesarcarlos
- 1,271
- 1
- 13
- 33
1
vote
1 answer
Unexpected error when querying Google Play Developer API. Please check if you use a correct service account
I am implementing Android Billing client Library V 3.0 . In Billing Client v 3.0 you have to use backend server for subscription states handling. For that purpose you have to link your google cloud account with your play console account.
So I have…

M Ajmal Shah
- 11
- 3
1
vote
1 answer
Android in-app purchase billing client crashes on build
I am new to Android in-app purchases. I have followed the official documentation and I can't go beyond building the BillingClient as app crashes when it tries to build the BillingClient. Any help or any reference to a android in-app purchases in…

jkndmiththinda
- 261
- 2
- 13
1
vote
0 answers
Android Studio - BillingClient not supported error
I get this error in my log when running my app:
W/BillingClient: In-app billing API version 3 is not supported on this device.
I recently added in app purchase. Running in simulator.
Any ideas why that is? This is what I have implemented in…

Erik Auranaune
- 1,384
- 1
- 12
- 27
1
vote
1 answer
Check SkuDetails subscription billing frequency
In Android development with Google Billing, how do I get the billing frequency for a Subscription
SkuDetails.subscriptionPeriod() returns a date string. Is there a way to get the billing frequency for example monthly or yearly or am I going to have…

pnizzle
- 6,243
- 4
- 52
- 81