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

Unable to get customer info #1205

Open
11 tasks done
TasnimAnas opened this issue Nov 10, 2024 · 2 comments
Open
11 tasks done

Unable to get customer info #1205

TasnimAnas opened this issue Nov 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@TasnimAnas
Copy link

TasnimAnas commented Nov 10, 2024

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

  • Output of flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.4, on macOS 15.1 24B83 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.90.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
  • Version of purchases-flutter : purchases_flutter: ^8.2.1
  • Testing device version e.g.: iOS 15.5, Android API 30, etc.: Pixel 8 API 35 ARM 64
  • How often the issue occurs- every one of your customers is impacted? Only in dev? This occurs in both dev and prod
  • Debug logs that reproduce the issue
I/flutter (12957): CONFIGURED
I/flutter (12957): ------------------
D/[Purchases] - DEBUG(12957): ℹ️ Vending Offerings from cache
D/[Purchases] - DEBUG(12957): ℹ️ Checking if cache is stale AppInBackground false
I/flutter (12957): Offerings(all: {default: Offering(identifier: default, serverDescription: Default Focus Package, metadata: {}, availablePackages: [Package(identifier: $rc_monthly, packageType: PackageType.monthly, storeProduct: StoreProduct(identifier: add_free:focus-mode, description: , title: Focus Mode (APP NAME), price: 2.4, priceString: $2.40, currencyCode: USD, introductoryPrice: null, discounts: null, productCategory: ProductCategory.subscription, defaultOption: SubscriptionOption(id: focus-mode, storeProductId: add_free:focus-mode, productId: add_free, pricingPhases: [PricingPhase(billingPeriod: Period(unit: PeriodUnit.month, value: 1, iso8601: P1M), recurrenceMode: RecurrenceMode.infiniteRecurring, billingCycleCount: 0, price: Price(formatted: $2.40, amountMicros: 2400000, currencyCode: USD), offerPaymentMode: null)], tags: [ad-free, focus], isBasePlan: true, billingPeriod: Period(unit: PeriodUnit.month, value: 1, iso8601: P1M), isPrepaid: false, fullPricePhase: PricingPhase(billingPeriod: Period(uni
I/flutter (12957): MissingPluginException(No implementation found for method r on channel purchases_flutter)
  • Steps to reproduce, with a description of expected vs. actual behavior
    Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

I have this code in my app:

try {
    print('------------------');
    final offers = await Purchases.getOfferings();
    print(offers);
    CustomerInfo cINFO = await Purchases.getCustomerInfo();
    print(cINFO);
  } catch (e) {
    print(e);
    return;
  }

This is resulting in console:

I/flutter (11533): ------------------
I/flutter (11533): Offerings(all: {default: Offering(identifier: default, serverDescription: Default Focus Package, metadata: {}, availablePackages: [Package(identifier: $rc_monthly, packageType: PackageType.monthly, storeProduct: StoreProduct(identifier: add_free:focus-mode, description: , title: Focus Mode (APP NAME), price: 2.4, priceString: $2.40, currencyCode: USD, introductoryPrice: null, discounts: null, productCategory: ProductCategory.subscription, defaultOption: SubscriptionOption(id: focus-mode, storeProductId: add_free:focus-mode, productId: add_free, pricingPhases: [PricingPhase(billingPeriod: Period(unit: PeriodUnit.month, value: 1, iso8601: P1M), recurrenceMode: RecurrenceMode.infiniteRecurring, billingCycleCount: 0, price: Price(formatted: $2.40, amountMicros: 2400000, currencyCode: USD), offerPaymentMode: null)], tags: [ad-free, focus], isBasePlan: true, billingPeriod: Period(unit: PeriodUnit.month, value: 1, iso8601: P1M), isPrepaid: false, fullPricePhase: PricingPhase(billingPeriod: Period(uni
I/flutter (11533): MissingPluginException(No implementation found for method r on channel purchases_flutter)

Additional context

Add any other context about the problem here.

@TasnimAnas TasnimAnas added the bug Something isn't working label Nov 10, 2024
@RCGitBot
Copy link
Contributor

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

@Jethro87
Copy link

@TasnimAnas Thanks for reporting this. Can you try the following?

  • Run flutter clean and reinstall plugins
  • If the above doesn't fix the issue, it might be Proguard/R8 related. Can you try disabling? This post gives information on Proguard - the instructions to disable it would be the same but setting minifyEnabled false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants