RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
609 stars 170 forks source link

Unable to get customer info #1205

Open TasnimAnas opened 2 weeks ago

TasnimAnas commented 2 weeks ago

‼️ 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

• No issues found!


- [x] Version of `purchases-flutter` : `purchases_flutter: ^8.2.1`
- [x] Testing device version e.g.: iOS 15.5, Android API 30, etc.: *Pixel 8 API 35 ARM 64*
- [x] How often the issue occurs- every one of your customers is impacted? Only in dev? *This occurs in both dev and prod*
- [x] [Debug logs](https://docs.revenuecat.com/docs/debugging) 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)

- [x] 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.
RCGitBot commented 2 weeks ago

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

Jethro87 commented 1 week ago

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