Discussions
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.
Posted by Maksim Matusevich almost 2 years ago
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
Posted by Olivier almost 2 years ago
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
Posted by Oleg Sedykh almost 2 years ago
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) { }
}
Posted by [email protected] almost 2 years ago
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
Posted by Chris Bick almost 2 years ago
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
Posted by D almost 2 years ago
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
Posted by Vladimir almost 2 years ago
adapty appsflyer integration not working
Greetings,
One or more analytical events failed to reach AppsFlyer (iOS). Check that your AppsFlyer (iOS) credentials are valid.
extension AppDelegate: AppsFlyerLibDelegate {
// Handle Organic/Non-organic installation
func onConversionDataSuccess(_ data: [AnyHashable: Any]) {
ConversionData = data
Adapty.updateAttribution(data, source: .appsflyer, networkUserId: AppsFlyerLib.shared().getAppsFlyerUID())
}
func onConversionDataFail(_ error: Error) {
}
}
I don't know what this actually issue.
Posted by shofikul Islam almost 2 years ago
Analytical events failed to reach Appsflyer and Amplitude
Hello!
I have integrated Adapty with AppsFlyer and Amplitude exactly as it is written in the documentation and rechecked everything.
But I am still getting errors in Adapty:
- One or more analytical events failed to reach AppsFlyer (Android);
- One or more analytical events failed to reach Amplitude.
Could you please advise me how to cope with this issue?
Posted by Valeria almost 2 years ago
AdaptyError (code 1001) No In-App Purchases were found.
Hi, I am getting the AdaptyError (code 1001) No In-App Purchases were found. when I have the product in the Adapty interface as well as in Apple Store Connect. I am not sure what is wrong.
Using flutter to include Adapty in app purchases on IOS
Posted by Richard Nettleship almost 2 years ago