Discussions

Ask a Question

It shows the same purchases for all users.

Hello, I am developing a mobile application on react native. I started using adapty for in-app purchase. However, I am having some problems. 1 - I successfully connect with the following command. activateAdapty({sdkKey: 'XXXX}); 2 - I create the user with the following command. await adapty.profile.identify('666'); 3 - I am viewing previous purchases with the following command. const data = await adapty.purchases.restore(); No problems so far. However, when I log out (await adapty.profile.logout();) and log back in for user '777' ( await adapty.profile.identify('777');) it also shows previous purchases on the new user. So when I run (const data = await adapty.purchases.restore();) on all users it shows the same purchases. I created multiple users, the situation did not change. Can you help me?
ANSWERED

Monthly Subscription doesn't work, while Yearly does. (IOS)

I have this problem when a yearly subscription works, while monthly doesn't. I could provide more detailed explanation, but my first guess is that this is some typical problem.

Doesn't work on some simulators (iOS 13.7, 14.5)

Hi, Adapty Team! I have a question. Can Adapty display paywalls on simulators? (in my case there are iOS 13.7, 14.5) It works great in 15.5 simulator, but i can't get paywalls on others. Instead i get an error Foundation.NSError NSError domain: "SKErrorDomain" - code: 0. "NSLocalizedDescription" : "Error decoding object" "NSLocalizedFailureReason" : "Attempted to decode store response" Thank you for the help.

Missing iOS subscriptions in Adapty

Hey, We just launched our app in production, and I can see that some events are missing from the event feed: Apple's reports are showing revenue for a subscription that Adapty is not showing. Adapty is counting the right number of subscriptions (or at least it seems like it), but I miss details on 1 of the iOS annual subscription (no revenue is accounted in the "Analytics" for that subscription, no events about that subscription, can't find any user linked to that, ...). I can only see that a new subscription popped (the one on the 17th of July 2022 in this chart https://app.adapty.io/analytics/charts/subscriptions_active). Also, Apple reports actually show revenue for this "missing" subscription, so it seems like some customer was charged for it. Could you help me investigate if something is wrong on my side or if adapty missed some app store server notifications ? Thank you

Failed to invoke callback System.Action

Hi, when calling the GetPurchaserInfo method, I get the error: "Failed to invoke callback System.Action`1[System.String] with arg {"success":{"access_levels":{},"subscriptions":{},"non_subscriptions":{},"profile_id":"07d28733-8695-4663-ba6a-22e505df02c7"}}: Exception has been thrown by the target of an invocation. --> The given key 'premium' was not present in the dictionary." Also sometimes there is an error with Make Purchase and RestorePurchases: "Failed to invoke callback System.Action`1[System.String] with arg {"error":{"code":2,"message":"The operation couldn’t be completed. (SKErrorDomain error 2.)","adapty_code":2,"domain":"SKErrorDomain"}}: Exception has been thrown by the target of an invocation. --> Object reference not set to an instance of an object. Stacktrace is not supported on this platform." Unity 2021.3.3f1, Cocoapods Adapt 1.17.6, Unity Plugin 1.0.1, iOS 15.3.1

Code: 1001, AdaptyCode: NoProductsFound, Message: No In-App Purchases were found

"GetPaywalls Error: Domain: com.adapty.AdaptySDK, Code: 1001, AdaptyCode: NoProductsFound, Message: No In-App Purchases were found." I'm using Unity 2021.3.3f1 I switched from RevenueCat before the transition everything worked. Adapt.GetPaywalls returns response null. Tested on a real device. My Code: public class PurchaseService : AdaptyEventListener, IPurchaseService { public event Action Initialized; public Adapty.Product[] Products; public void Initialize() { Adapty.SetEventListener(this); Initialized?.Invoke(); } public void GetProducts() { Adapty.GetPaywalls((response, error) => { if (error != null) { Debug.LogWarning($"GetPaywalls Error: {error}"); return; } Adapty.Paywall paywall = response.Paywalls[0]; Products = paywall.Products; }); } public void MakePurchase(string productId) { Adapty.MakePurchase(productId, null, null, null, (_, error) => { if (error != null) { Debug.LogWarning($"MakePurchase Error: {error}"); //return; } }); } public void OnReceiveUpdatedPurchaserInfo(Adapty.PurchaserInfo purchaserInfo) { } public void OnReceivePromo(Adapty.Promo promo) { } public void OnDeferredPurchasesProduct(Adapty.Product product) { } public void OnReceivePaywallsForConfig(Adapty.Paywall[] paywalls) { } }

promoting in-app purchases

Hi, Does Adapty support promoting in-app purchases? We promoted an in-app purchase and couldn't get it to work. Here more info - https://developer.apple.com/app-store/promoting-in-app-purchases/ From the app store "You can promote up to 20 in-app purchases, and they’ll appear on your app’s product page and can be shown in search results or be featured by our editorial team. Users can tap an in-app purchase to open your app, where they can buy it. Make sure your app supports the SKPaymentTransactionObserver method to process this transaction. Learn More" Thanks, Chris

Adapty.activate (iOS) in application(_:didFinishLaunchingWithOptions:

Does Adapty.activate return any error if Internet connection is not online... In debug, I see:- Connection 1: received failure notification ... HTTP load failed, 0/0 bytes (error code: -1009 [1:50]) .... Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." Do I have to do my own check that Internet connection is available before invoking Adapty paywall method? Thanks

AdaptyError on Flutter in Android app

Hello! I have an AdaptyError exception with null error message and code when trying to receive paywalls in release mode. App is released in Play Market for closed testing. In debug mode everything works as intended. On iOS platform everything works both in release and debug mode Here some logs I/flutter (10797): #0 Adapty._invokeMethodHandlingErrors (package:adapty_flutter/adapty_flutter.dart:240) I/flutter (10797): <asynchronous suspension> I/flutter (10797): #1 Adapty.getPaywalls (package:adapty_flutter/adapty_flutter.dart:64) I/flutter (10797): <asynchronous suspension> .... I/flutter (10797): AdaptyError (code null) Probably, the same bug https://github.com/adaptyteam/AdaptySDK-Flutter/issues/45
ANSWERED

"View Sandbox users only" feature

Hi! Please, add a switcher for events, paywalls, users, segments and funnels where the user can view either sandbox or appstore users only. Otherwise, you're ending up with too much "noise" in data and it's slows down the work.