Discussions

Ask a Question

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.
ANSWERED

BUG! Previously purchased Lifetime Subscriptions do not count after the SDK is installed.

I bought a lifetime version. Google's billing library takes into account and correctly processes the purchased version. After installing your SDK, it shows me that there is no premium access.
ANSWERED

Error: #2009 (encodingFailed): Failed to find encoder for property "vendorId" for react native expo

I want to test purchases from my react native expo application but I am getting this error. My code: ``` export const getAdaptyWeeklyPaywall = async () => { try { const id = "my_id"; const paywall = await adapty.getPaywall(id); console.log(paywall.products[0]); const product=paywall.products[0] try { const profile = await adapty.makePurchase(paywall.products[0]); } catch (error) { console.log("hata: "+error) // handle the error } // the requested paywall } catch (error) { // handle the error console.log("hata: " + error); } }; ```
ANSWERED

How to get discount price for the product

Hi team, after the recent Flutter Adapty SDK release (`adapty_flutter: ^2.6.2`) it's no longer possible to get a discount price for the product. Before (version: `adapty_flutter: ^2.4.4`) I just used ``` if (adaptyPaywallProduct.isDiscountAvailable) { return adaptyPaywallProduct.discounts.first.localizedPrice ?? ''; } ```
ANSWERED

Flutter: Promotional Offers for subscription

Howdy, We setup our product and added the promotional offer for an subscription into appstoreconnect & we added an offer into the adapty product. But whenever i try to call the `presentCodeRedemptionSheet() (and enter the correct code)`or `https://apps.apple.com/redeem?ctx=offercodes&id={apple_app_id}&code={code}` with the correct data, apple says that the code is not valid. i can not find a proper documentation how to set it up correctly from appstoreconnect into adapty / the app.
ANSWERED

An issue with adapty activation?

Hello, I am working on the store page for my app and am receiving a 404 error - stating 'PurchaseContainer not found' along with a url. <https://api.adapty.io/api/v1/sdk/in-apps/purchase-containers/paywall_one/?profile_id=40962bd6-e3de-457f-8112-a6ae0b9c8184&locale=en> Full error below: \[Error: #2003 (badRequest): Request is unsuccessful. <https://api.adapty.io/api/v1/sdk/in-apps/purchase-containers/paywall_one/?profile_id=40962bd6-e3de-457f-8112-a6ae0b9c8184&locale=en> Code: 404, Response: {"errors":[{"detail":"PurchaseContainer Not Found","status":"404","source":{"pointer":"/data"},"code":"not_found"}]}] And here is the error of the URL if you don't want to go to it. { errors: [ { detail: "Authentication credentials were not provided.", status: "401", source: { pointer: "/data" }, code: "not_authenticated" } ] } And the implementation is correct according to the docs // App.js // useEffect(() => { adapty.activate('MY_ADAPTY_API_KEY') }, \[]) Any ideas - looking at similar discussions but not finding anything of use. Thanks! \-M
ANSWERED

Adapty + Facebook Ads integration

Hi! Our team has some questions about integrating Adapty with Facebook Ads. The situation: iOs app made with Unity released into kids category. Because of kids category restrictions that we can't use Unity version of Facebook SDK. We want to launch an ad campaign and we need to do an Facebook's events call to increase the effectiveness. But Adapty's documentation says that integration will not work without an "Facebook anonymousID" because of IDFA changes (<https://docs.adapty.io/docs/facebook-ads>). Anyway anonymousID is not available in the Unity-version of Facebook SDK. So the question is: if we enable Adapty's Facebook integration will it still works without anonymousID?