Discussions
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
Posted by Snehal Naik 7 months ago
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?
Posted by Meet 7 months ago
Deleting my account
Hello, I have created an account accidentally and I need it to be deleted. Could you please help me?
Posted by Fulya Dincer 7 months ago
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?
Posted by Daniel 7 months ago
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.
Posted by Leo Jo 7 months ago
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.
Posted by Leo Jo 7 months ago
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?
Posted by Volkan Usuğlu 8 months ago
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))]
Posted by Rowen 8 months ago
[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,
);
}
}
```
Posted by CHOI HYOUNG BIN 8 months ago
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.
Posted by Petr Kubes 9 months ago