Discussions

Ask a Question

subscription profile update issue

How can I update a user's subscription profile if the second payment for a subscription product has been made on the Play Store, but the payment information has not been updated in the user's adapty profile?

Error when integrating sdk

[Error: #0 (unknown): Failed to deserialize a native error message] I am getting this error when I am adding useEffect(() => { adapty.activate('PUBLIC_SDK_KEY'); }, []); How can I solve this? Thank you!
ANSWERED

iOS purhcase failing with "Cannot connect to Itunes Store"

Hey there, We are building a new app in react native with your platform to control payments and products. We have implemented everything according to your documentation and we are having some issues. On android everything is working fine but on iOS is not. We have added the bundle pack and the shared secret for iOS configuration, and we’ve also created the access level, the product with its Ids and the paywall containing the product. We’ve followed your docs to implement the code which looks like this. const { paywalls, products } = await adapty.paywalls.getPaywalls(); if (products?.length) { const { receipt, purchaserInfo, product } = await adapty.purchases.makePurchase(products[0]); if (receipt) { // after payment logic } } We only have 1 product which is a monthly subscription with 1 week free trial. Everything on the app store is also configured and the product id was added to adapty. When executing these lines of code on the app (on local enviroment on a real device via xcode), we get the following error: “Cannot connect to iTunes Store”. We are not sure if the error is this one exactly because we have the error in Spanish. In case its helpfull this is the exact error we get on the xcode console. 2023-02-16 17:46:58.827267+0100 workouts[1024:362090] [javascript] { [Error: Imposible conectarse a iTunes Store] adaptyCode: ‘unknown’, localizedDescription: ‘Imposible conectarse a iTunes Store’, code: 0, line: 1398, column: 247, sourceURL: ‘/var/containers/Bundle/Application/876BBA12-2CB5-4F8D-A9EB-8DBAE8932F04/workouts.app/main.jsbundle’ } We are using version 1.4.1 of your SDK. Thank you so much for your time.
ANSWERED

Expo's EAS android build broken

I'm trying to use adapty with Expo (with expo-dev-client), which is going fine on iOS so far. On Android, when launching the eas build, I'm getting the following error : > Task :react-native-adapty:compileDebugKotlin [stderr] e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors [stderr] e: /home/expo/.gradle/caches/transforms-3/2ae867a2e11de942398247e9a7b7c6a4/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1. I'm using the 2.3.1 react-native-adapty, everything is up to date on expo/eas side.
ANSWERED

activateAdapty is undefined when importing in React Native

Hello, I have followed the React Native installation instructions here: https://docs.adapty.io/docs/react-native-installation and I have followed the Release Checklist here: https://docs.adapty.io/docs/release-checklist?_ga=2.239154563.1419214155.1673862153-1229049688.1661964069 However, when I run: import {adapty, activateAdapty} from "react-native-adapty"; console.log("adapty", adapty); console.log("activateAdapty", activateAdapty); I see that neither `activateAdapty` nor `adapty.paywalls` are defined: LOG adapty {"activationPromise": null, "addEventListener": [Function anonymous], "bridge": [Function promiseMethodWrapper], "listeners": [], "memoArgs": null, "nativeEmitter": {"_nativeModule": {"addListener": [Function nonPromiseMethodWrapper], "getConstants": [Function anonymous], "handle": [Function promiseMethodWrapper], "removeListeners": [Function nonPromiseMethodWrapper]}}, "shouldWaitUntilReady": false} LOG activateAdapty undefined
ANSWERED

I am not able to activate Adapty in flutter

I am configuring Adapty according to this tutorial: https://docs.adapty.io/docs/flutter-configuring. Anyway, I don't think the documentation is up to date. When i am trying to execute this line of code: await Adapty().activate(); Android Studio tells me this This expression has a type of 'void' so its value can't be used, so, i can not even run the code using this... When i remove the void, I am able to get to a page with iOS styling, but I see the alert saying Adapty Error 20, adapty was not initialized Thank you for your answer.
ANSWERED

React Native - Paywall( Remote Config )

How i can had all the data for all countries ( without localization ) in one JSON with the latest sdk ?
ANSWERED

Im in sandbox mode, Will the AccessLevel check of premium will always return FALSE ?

this always returns false : let isPremium = profile.accessLevels["premium"]?.isActive ?? false Is this because im on the sandbox mode ?
ANSWERED

React native: Error code: 260, Apple sign in is required during adapty.activate

react-native-adapty version is 2.2.1 I am calling adapty.activate(MY_API_KEY) in useEffect, adapty becomes initialized, but along with that for some reason adapty makes an alert in app with title(Sign in to your apple account), this behaviour appears on real device and emulator too. Also, in xcode appears this error message: "[Adapty v2.2.2] - ERROR: SKReceiptManager: Receipt Data did not loaded. Error Domain=NSCocoaErrorDomain Code=260 "The file “receipt” couldn’t be opened because there is no such file." Will be glad for any help. Thank you in advance!
ANSWERED

v2.0 SDK fr React Native ?

When is the v2.0 version of SDK planned to be released for React Native?