Discussions

Ask a Question

Stop tracking non-cosumables

I'm using Adapty to track my subscriptions, while using another tool to track non-consumable in-app purchases. The problem is that Adapty adds the revenue from non-consumables to the MTR, and this increases my cost with Adapty (about 80% of my revenue comes from non-consumables). Is there any way to exclude non-consumables from Adapty?

Recommended way to cancel a subscription?

I'm using the react-native library. I want to a show a button that allows the user to cancel their subscription. Is there a recommended way to do this? Ideally the SDK could handle this client side but if not, one could spin up a lambda and use the server-side API to call the revoke subscription endpoint or something of the like?

Paywall not showing prices

I'm using the react-native library. I've triple checked that my my subscriptions, IDs, etc. have all been configured properly. I call `adapty.getPaywall(id);` and then show it. The paywall pops in the app and it shows the correct paywall, but the `PROD_TITLE`, `PROD_PRICE`, AND `PROD_PRICE_PER_MONTH` variables are all missing. <br /> Does the app need to have been published in the app store for this to work? Is this a known issue? <br /> Thanks

PaywallBuilder is not showing products in-app

I am building a Flutter app and using the PaywallBuilder to create a Paywall. The paywall placement renders correctly in my app (although it is incredibly slow), but it is not displaying any of my products that I configured within the Google Developer console. I verified that the product IDs and base plan matches what I set in app. I have also run through instructions to \[setup the Android SDK](<https://docs.adapty.io/docs/android-settings>) and I believe that I ran through everything correctly. Some additional context is that I am running this via an emulator. Could that affect anything? I am not seeing any errors get raised in my debug logs so I am having trouble getting to the root cause of the problem.

Terms and Privacy buttons bugged?

Hello, The buttons Terms and Privacy on the paywall does not open the chosen URL. Is it an issue on my side, or does everyone experiences that? If yes, could it be fixed?

How to get the non-subscription purchase that is just purchased.

Hello, I am using Adapty for subscriptions on my Flutter app. I am also trying to use Adapty for non-subscriptions. But when a purchase is made with makePurchase() function, AdaptyProfile object is returned instead of AdaptyNonSubscription object. So it looks like I have to compare the AdaptyProfile before and after purchase and find which nonSubscription object is newly created. Is this right? or is there easier way. This way is so overly complicated.

infinity Adapty Identify

Hi, my Unity application freezes when I do Adapty.Identify, just no callback comes back public SDK key added to the manifest, on the adapty side of the console, I specified the package name in the android settings, in Unity I also specified the same package name and started the keystore, clicked Resolve I get this error on my mac **AdaptyUnityError.DecodingFailed(System.NullReferenceException: Object reference not set to an instance of an object at AdaptySDK.SimpleJSON.JSONNode.Parse (System.String aJSON) [0x0044c] in ...** ``` public static async UniTask<bool> TryLoginAsync(string userId) { if (_loginStatus != AsyncOperationStatus.NotStarted) { return false; } _loginStatus = AsyncOperationStatus.Pending; Debug.Log($"TryLoginAsync : {userId}"); Adapty.Identify(userId, OnIdentifyCompleted); await UniTask.WaitUntil(() => _loginStatus != AsyncOperationStatus.Pending); return _loginStatus == AsyncOperationStatus.Complete; void OnIdentifyCompleted(Adapty.Error error) { Debug.Log($"OnIdentifyCompleted"); if (error != null) { Debug.LogError(error.Detail); _loginStatus = AsyncOperationStatus.Failed; } _loginStatus = AsyncOperationStatus.Complete; } } userId is Guid.NewGuid().ToString() ```

Android SDK 2.9.1 > Error : 400 Bad Request > setVariationId()

Hi, Team We are facing the below issues when trying to set up an event after purchase. Ref Doc: <https://docs.adapty.io/docs/android-observer-mode#ab-tests-analytics> > Request is unsuccessful. <https://api.adapty.io/api/v1/sdk/in-apps/transaction-variation-id/> Code: 400, Response: {"errors":[{"detail":"Transaction with this id does not exist","status":"400","source":{"pointer":"/data"},"code":"TRANSACTION_NOT_FOUND"}]} ```java Adapty.setVariationId(purchase.getOrderId(), paywall.getVariationId(), new ErrorCallback() { @Override public void onResult(@Nullable AdaptyError error) { if (error == null) { ObLogger.i(TAG, "setVariationId onResult: EventSent --> "); } else { ObLogger.i(TAG, "setVariationId onResult: error --> " + error.toString()); } } }); ``` > Note: > > 1. Paywall: Comes from "Adapty.getPaywall()" function > 2. Purchase: Comes from GooglePlayBilling "onPurchasesUpdated()" method. > > SDK : implementation 'io.adapty:android-sdk:2.9.1'

Adapty react-native/expo paywall login event

Hi, I see that there is an option to add a 'Login' button to the bottom of paywall next to the terms, privacy, restore, etc in the adapty GUI however I do not see any events or documentation on how to know when a user clicks the login button so that I can respond to that event. Any help would be greatly appreciated, I have provided code below to show how I am getting my paywall and a few of the current events that I am using to trigger off of. ``` const paywall = await adapty.getPaywall(id, locale) const view = await createPaywallView(paywall) // onPurchaseCompleted for now adapty.addEventListener('onLatestProfileLoad', () => { loginNavigation.navigate('Login', { firstTimeSubscriber: !isPastSubscriber, }) }) unsubscribe = view.registerEventHandlers({ onLoadingProductsFailed() { setErrorText( 'Something went wrong, please check your network and try again', ) }, onPurchaseFailed() { setErrorText( 'Something went wrong, please check your network and try again', ) }, onRenderingFailed() { setErrorText( 'Something went wrong, please check your network and try again', ) }, // etc, no onLoginClicked() or something similar? ```

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