Discussions

Ask a Question
ANSWERED

Any plans for .Net Maui SDK?

As title. Thanks.
ANSWERED

React Native Error #2003

Montly subscription on first press opens without errors. After xcode environment subscribe catch error Error: #2003 (badRequest): Server error at construct (native) at apply (native) at \_construct (http\://localhost:8081/index.bundle//&platform=ios&dev=true&minify=false&inlineSourceMap=false&modulesOnly=false&runModule=true&app=org.reactjs.native.example.[ProjectName]\:4013:28). On restart app on click to subscribe same error [Error: #2003 (badRequest): Server error] App Shared Secret Key is identic ![](https://files.readme.io/9e33e7b-image.png)
ANSWERED

server-side API. Grant subscription and create user profile.

We are setting up our payment system on our website and I have a question about the API. Do I need to create a user profile in Adapty before granting the subscription? Does the user need to exist before calling this endpoint?: <https://docs.adapty.io/docs/server-side-api-specs#prolonggrant-a-subscription-for-a-user> Do I need to check if the user already exists in Adapty, then call this endpoint <https://docs.adapty.io/docs/server-side-api-specs#create-a-user>, then update the subscription?
ANSWERED

Adapty.getViewConfiguration(paywall, locale) become very slow

it takes about 1 min to load ... fk
ANSWERED

Do Adapty Paywall Templates work with iPads?

I am wondering if we can use the paywall builder to make a paywall for an iPad in conjunction with iPhones?
ANSWERED

I don't see any paywall

In void main() async { WidgetsFlutterBinding.ensureInitialized(); I entered. // Attiva le SDK di Adapty Adapty().activate(); // Controlla lo stato dell'abbonamento final profile = await Adapty().getProfile(); if (profile.accessLevels['full_app']?.isActive ?? false) { isSubscriptionActive = true; } else { isSubscriptionActive = false; } // Ascolta le modifiche allo stato dell'abbonamento Adapty().didUpdateProfileStream.listen((profile) { if (profile.accessLevels['full_app']?.isActive ?? false) { isSubscriptionActive = true; } else { isSubscriptionActive = false; } }); runApp(const MyApp()); } And I create Positioned( right: 16, top: MediaQuery.of(context).size.height / 2 - 94, child: Visibility( visible: !isSubscriptionActive, child: FloatingActionButton( onPressed: () async { try { final paywall = await Adapty().getPaywall(id: "FFF", locale: "en"); { final products = await Adapty().getPaywallProducts(paywall: paywall); await Adapty().logShowPaywall(paywall: paywall); ``` if (products.isNotEmpty) { final product = products.first; final profile = await Adapty().makePurchase(product: product); if (profile != null) { // Acquisto riuscito, puoi aggiornare l'interfaccia utente o eseguire altre azioni qui } } else { // Non ci sono prodotti nel paywall logger.w("Nessun prodotto nel paywall"); } } } on AdaptyError catch (adaptyError) { // Gestisci gli errori specifici di Adapty durante l'acquisto logger.w("Errore Adapty: ${adaptyError.message}"); } catch (e) { // Gestisci eventuali altri errori generici durante l'acquisto logger.w("Errore generico: $e"); } }, mini: true, backgroundColor: Colors.orange, child: const Icon(Icons.shopping_cart), ), ``` ), ), I can't see my paywall. Why?
ANSWERED

Не приходит Customer ID

Мы используем SDK Flutter и пейвол подключили без билдера, продукты приходят но мы не получаем Customer ID, хотя identify тоже подключен, можете помочь с проблемой?

Error when Accessing Native Module in React Native

Hello Adapty community, I hope you're all doing well. I'm currently facing an issue in my React Native application, and I could use some guidance. I'm encountering the following error: TypeError: null is not an object (evaluating 'react_native_1.NativeModules[bridge_1.MODULE_NAME][bridge_1.HANDLER_NAME]') This error occurs when I'm trying to access a native module within my React Native app. I've double-checked the module's existence and initialization, but I'm still facing this issue. I would greatly appreciate any insights or suggestions on how to resolve this error. If you have any experience with similar issues or can point me in the right direction for troubleshooting, I'd be very grateful. Thank you in advance for your help. Best regards, Meet
ANSWERED

Akın Aksoy

Is there any new documentation for iOS ? For example In the documentation : 2.7.0. or Should I use which version ? \----------------- AdaptyUI.getViewConfiguration(forPaywall: paywall, locale: "en") { result in switch result { case let .success(viewConfiguration): // use loaded configuration case let .failure(error): // handle the error } } *** But I can't find this method. Only I see this function : public static func getViewConfiguration(data: Data, \_ completion: @escaping AdaptyResultCompletion\<AdaptyUI.ViewConfiguration>) { Can you describe " How can I integrate Paywall Builder View to IOS app SwiftUI ?"

onPurchaseCompleted Not firing "2.7.0-canary.1"

``` import React, { useEffect, useState } from 'react' import { StyleSheet, Image, View, ActivityIndicator } from 'react-native' import { useNavigation } from '@react-navigation/native' import { adapty } from 'react-native-adapty' // "2.7.0-canary.1" import { createPaywallView } from '@adapty/react-native-ui' //"^2.0.0-canary.1" import { useAppDispatch } from '../state/store' import { loadLessonsAsync } from '../state/slices/lessonSlice' const LandingPage = () => { const navigation = useNavigation() const thunkDispatch = useAppDispatch() let unsubscribe: (() => void) | undefined const [isLoading, setIsLoading] = useState(false) const loadLessons = async () => { thunkDispatch(loadLessonsAsync()) } const showPaywall = async () => { setIsLoading(true) try { const id = 'onboarding.v1' const locale = 'en' const paywall = await adapty.getPaywall(id, locale) // const products = await adapty.getPaywallProducts(paywall) const view = await createPaywallView(paywall) unsubscribe = view.registerEventHandlers({ onCloseButtonPress() { console.log('close button press') // view.dismiss(); return true }, onProductSelected() { console.log('product selected') }, onLoadingProductsFailed(error) { console.log('loading products failed', error) }, onPurchaseCancelled() { console.log('purchase cancelled') }, onPurchaseCompleted(profile) { console.log('purchase completed ', profile) loadLessons().then(() => { navigation.navigate('Dashboard' as never) }) return true }, onPurchaseFailed(error) { console.log('purchase error ', error) }, onPurchaseStarted() { console.log('purchase started') }, onRenderingFailed(error) { console.log('error rendering ', error) }, onRestoreCompleted(profile) { console.log('restore completed ', profile) console.log(profile) loadLessons().then(() => { navigation.navigate('Dashboard' as never) }) return true }, onRestoreFailed(error) { console.log('restore failed', error) }, onAction(action) { console.log('action', action) }, }) await view.present() } catch (error) { console.error(error) } finally { setIsLoading(false) } } useEffect(() => { // will check if not subscribed in future // after the user subscribes, if we can get enough info to have them in firebase // then we can add them automatically and drop them on the dashboard showPaywall() return () => { if (unsubscribe) { unsubscribe() } } // eslint-disable-next-line react-hooks/exhaustive-deps }, []) return ( <View style={styles.pageContainer}> {isLoading && ( <View style={styles.spinnerOverlay}> <ActivityIndicator size="large" color="#ffffff" /> </View> )} <Image source={require('../../assets/images/appIcon.png')} resizeMode="contain" style={styles.image} /> </View> ) } const styles = StyleSheet.create({ pageContainer: { backgroundColor: '#6B53FF', flex: 1, alignItems: 'center', justifyContent: 'center', resizeMode: 'contain', }, image: { width: '100%', height: '100%', }, spinnerOverlay: { position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, backgroundColor: 'rgba(107,83,255,0.8)', zIndex: 1000, justifyContent: 'center', alignItems: 'center', }, }) export default LandingPage ``` Hi I am trying to render a paywall that I built in adapty. It is rendering fine and I am able to make a purchase that gets reflected in the adapty dashboard and in my sandbox ios settings. However most of my event handlers never get called. The main one I need is onPurchaseCompleted. This never gets called even after a successful purchase. The only ones that ever get called are onProductSelected, onPurchaseStarted, and onRestoreCompleted (when I restore). Any help would be greatly appreciated