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

getSubscriptionListingDetailsAsync not loading subscription SKU details #533

Open
fahadzafar opened this issue Dec 1, 2022 · 1 comment

Comments

@fahadzafar
Copy link

fahadzafar commented Dec 1, 2022

Do you want to request a feature or report a bug?
Reporting a bug

What is the current behavior?
After checking that
isAvailable && isConnected && isSubsUpdateSupported is true

calling,
bp.getSubscriptionListingDetailsAsync( productId, ... )

return a 0 sized List<SkuDetails>
Note: The product_id exists in the play console subscription.

Don't forget to mention:

  • which version of library you use
    implementation 'com.anjlab.android.iab.v3:library:2.0.3'

  • was it working in previous versions?
    First time using this so don't know about previous versions

  • do you use fragments or not
    No this is an activity.

  • how do you instanciate BillingProcessor (singleton or not)
    bp = new BillingProcessor(this, GLOBALS.LICENSE_KEY, this);
    bp.initialize();
    but doesnt matter since before doing anything i check,

boolean isAvailable = bp.isIabServiceAvailable(context);
boolean isConnected = bp.isConnected();
boolean isSubsUpdateSupported = bp.isSubscriptionUpdateSupported();
 if (isAvailable && isConnected && isSubsUpdateSupported) {
...
  • which device/OS version do you use for testing (or its an emulator)

Android 12

  • have you uploaded it to Google Play or not (if yes, when which channel: Prod/Beta/Alpha)
    Alpha , closed testing

  • do you test with real products, or with a testing onces (e.g. android.test.purchased)
    Real product, created in subscriptions

The more details you provide - the faster you'll get an answer from community
LogCat states that
GooglePlayConnection; *** D IsConnected

Extras , the subscription productId is : plan_bronze
and I am using,
bp.getSubscriptionListingDetailsAsync("plan_bronze", paymentHandler);

@superoidlau
Copy link

superoidlau commented Jun 27, 2024

@fahadzafar
Before the application was published, I also returned an empty list. Is this related to the release status of the application?
and have you solved this ?

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

2 participants