Discussions

Ask a Question

Access leves response is always false for "profile.accessLevels['premium']?.isActive ?? false" in Android

Hello, I have flutter app with adapty_flutter: 2.6.2 integrated. It works fine wih iOS but when I test it using Android sanbox testing for subscriptions the above method always gives me false response even after making purchases. Is this a bug. We have also created and uploaded service account key using these steps: <https://docs.adapty.io/docs/service-account-key-file> But at the moment Google do not require steps 1 to 3 to be done in play console as per their latest update. is this the reason it is creating the issues? Also why Adapty document is still not updated in this case. Please help me understand the issue ASAP. Many Thanks
ANSWERED

Getting following error

TypeError: null is not an object (evaluating 'react_native_1.NativeModules[bridge_1.MODULE_NAME][bridge_1.HANDLER_NAME]') While running project?
ANSWERED

Deleting my account

Hello, I have created an account accidentally and I need it to be deleted. Could you please help me?
ANSWERED

Multiplatform premium subscriptions with different plans (like 3day trial, 25% discount etc.)

Hey. I have a Unity app and I want to implement premium subscription for Android & iOS with next variations: - monthly sub - yearly sub with 3day trial (for users that never had yearly before) - yearly sub with 25% discount - 50% discount for 3 months then full cost Also, when you switch between these different plans it should add the remaining time period. For example, if user has subscribed to monthly sub and after 15 days he decided to switch to yearly, it should cancel the monthly sub and append remaining 15 days to the yearly sub (eventually user will have 1 year + 15 days of premium). OR alternatively it will wait till the current plan is ended and then start the new plan. Is it possible to do with Adapty SDK?

VideoPlayer doesn't play when I call logShowPaywall

When the paywall view is turned on, it calls logShowPaywall. When logShowPaywall is called, the videoplayer inside the view does not play. I'm curious if there has been a similar issue. We have an app built with SwiftUI.

VideoPlayer doesn't play when I call logShowPaywall

When the paywall view is turned on, it calls logShowPaywall. When logShowPaywall is called, the videoplayer inside the view does not play. I'm curious if there has been a similar issue. We have an app built with SwiftUI.

Unity ios upload to store error

I was able to upload to store until add adapty sdk to my unity project. After ios build everthing seems fine. İ can build to my phone from xcode. And i can use app, subscribe etc. When i try to archive build and upload to appstoreconnect via xcode i am getting unity framework error. What am i doing wrong?

The same paywall is available for free trial information in the Android native SDK, but not in flutter SDK 2.6.2

The following is printed information for the Android SDK AdaptyPaywallProduct(vendorProductId=test_yearly, localizedTitle=Test Yearly Product , localizedDescription=, paywallName=test paywall, paywallABTestName=test paywall, variationId=7b63310d-cf9e-482c-9d72-da1386997378, price=Price(amount=469, localizedString=HK$469.00, currencyCode=HKD, currencySymbol=$), subscriptionDetails=com.adapty.models.AdaptyProductSubscriptionDetails@cee6a6b, productDetails=ProductDetails{jsonString='{"productId":"test_yearly","type":"subs","title":"Test Yearly Product ","name":"Test Yearly Product","localizedIn":["en-US"],"skuDetailsToken":"AEuhp4IYoRAXUMYl779VSZrqCIxvVjl4EZztjfK_2VVJcYblStRX_fbmQmWgz4xvm_gt","subscriptionOfferDetails":\[{"offerIdToken":"AUj\/Yhil146KKInjGLramQRWsVgKrCK1IKTkvOVYhVz7CatEGsTAZVN3IkOHotmc1Cy8cR0RMSIpzCDv0\/e09LP\/qboDPBCVQkpNocXH6CV1ZnYgOoTPa9EU2MW6t+s2Xia3z5KHYmj7fjKZL3z14580El6pcIaL","basePlanId":"yearly-test","offerId":"test-yearly-freetrial","pricingPhases":[{"priceAmountMicros":0,"priceCurrencyCode":"HKD","formattedPrice":"免費","billingPeriod":"P1W","recurrenceMode":2,"billingCycleCount":1},{"priceAmountMicros":469000000,"priceCurrencyCode":"HKD","formattedPrice":"HK$469.00","billingPeriod":"P1Y","recurrenceMode":1}],"offerTags":\[]},{"offerIdToken":"AUj\/YhhGJ1XQJZ3tCKpx\/o6ojGB48z2xdN1irXQv37ksjNLZXlXwaaArqeSAHu6pZOp3gSB2OSAFtiUT0Nxc4jHUt4rQaaVCH\/730nv38pExCKqCcLMVjYxP1g==","basePlanId":"yearly-test","pricingPhases":[{"priceAmountMicros":469000000,"priceCurrencyCode":"HKD","formattedPrice":"HK$469.00","billingPeriod":"P1Y","recurrenceMode":1}],"offerTags":\[]}]}', parsedJson={"productId":"test_yearly","type":"subs","title":"Test Yearly Product ","name":"Test Yearly Product","localizedIn":["en-US"],"skuDetailsToken":"AEuhp4IYoRAXUMYl779VSZrqCIxvVjl4EZztjfK_2VVJcYblStRX_fbmQmWgz4xvm_gt","subscriptionOfferDetails":\[{"offerIdToken":"AUj\/Yhil146KKInjGLramQRWsVgKrCK1IKTkvOVYhVz7CatEGsTAZVN3IkOHotmc1Cy8cR0RMSIpzCDv0\/e09LP\/qboDPBCVQkpNocXH6CV1ZnYgOoTPa9EU2MW6t+s2Xia3z5KHYmj7fjKZL3z14580El6pcIaL","basePlanId":"yearly-test","offerId":"test-yearly-freetrial","pricingPhases":[{"priceAmountMicros":0,"priceCurrencyCode":"HKD","formattedPrice":"免費","billingPeriod":"P1W","recurrenceMode":2,"billingCycleCount":1},{"priceAmountMicros":469000000,"priceCurrencyCode":"HKD","formattedPrice":"HK$469.00","billingPeriod":"P1Y","recurrenceMode":1}],"offerTags":\[]},{"offerIdToken":"AUj\/YhhGJ1XQJZ3tCKpx\/o6ojGB48z2xdN1irXQv37ksjNLZXlXwaaArqeSAHu6pZOp3gSB2OSAFtiUT0Nxc4jHUt4rQaaVCH\/730nv38pExCKqCcLMVjYxP1g==","basePlanId":"yearly-test","pricingPhases":[{"priceAmountMicros":469000000,"priceCurrencyCode":"HKD","formattedPrice":"HK$469.00","billingPeriod":"P1Y","recurrenceMode":1}],"offerTags":\[]}]}, productId='test_yearly', productType='subs', title='Test Yearly Product', productDetailsToken='AEuhp4IYoRAXUMYl779VSZrqCIxvVjl4EZztjfK_2VVJcYblStRX_fbmQmWgz4xvm_gt', subscriptionOfferDetails=[com.android.billingclient.api.ProductDetails$SubscriptionOfferDetails@f5e14e5, com.android.billingclient.api.ProductDetails$SubscriptionOfferDetails@38adbba]}) Below is the print information for flutter SDK \[(vendorProductId: test_yearly, localizedDescription: , localizedTitle: Test Yearly Product, regionCode: null, isFamilyShareable: false, paywallVariationId: 7b63310d-cf9e-482c-9d72-da1386997378, paywallABTestName: test paywall, paywallName: test paywall, price: (amount: 469.0, currencyCode: HKD, currencySymbol: $, localizedString: HK$469.00), subscriptionDetails: (subscriptionGroupIdentifier: null, subscriptionPeriod: (unit: AdaptyPeriodUnit.year, numberOfUnits: 1), localizedSubscriptionPeriod: 1年, introductoryOffer: \[], promotionalOffer: null, androidOfferId: null, androidBasePlanId: yearly-test, androidOfferTags: \[], renewalType: AdaptyRenewalType.autorenewable, \_androidIntroductoryOfferEligibility: AdaptyEligibility.ineligible))]
ANSWERED

[ADAPTY] Error: #2009 (encodingFailed): Failed to find encoder for property "0"

try { const id = 'hoxy_weekly_2'; const locale = 'en'; ``` const paywall = await adapty.getPaywall(id, locale); await adapty.logShowPaywall(paywall); const product = await adapty.getPaywallProducts(paywall); console.log(JSON.stringify(product)); try { console.log('[ADAPTY] Purchasing product: ', product); await adapty.makePurchase(product); console.log('[ADAPTY] Purchase successful'); } catch (error) { console.log('[ADAPTY] Error:', error.message); if (error instanceof AdaptyError) { Alert.alert( `Error purchasing product #${error.adaptyCode}`, error.localizedDescription, ); } } ```
ANSWERED

Flutter: Not found makePurchasesCompletionHandlers for [PRODUCT_NAME]

Hi, in the logs in my Flutter app, I'm seeing: [Adapty v2.6.3] - ERROR: Not found makePurchasesCompletionHandlers for [PRODUCT_NAME] Is that something I should worry about? The flow seems to work fine.