Closed ahmdt closed 1 year ago
Hey, @tonbert! Could you specify on which platform the error occurred, iOS or Android?
It was iOs on iPhone 14 Pro and the local simulator as well. I added an empty default string to abTestName and it worked again. It seems like this data should be nullable
@tonbert could you please clarify, what do you mean by "I added an empty default string to abTestName"?
When you create an ab-test, this field is required (see screenshot).
I also do not fully understand why you think that the problem was exactly in the abTestName parameter, while the stackTrace error points to another location. May I ask you to describe your steps in a little more detail, as well as attach the verbose log from the Flutter SDK and iOS SDK?
The class declaration in the adapty_paywall.dart file states that the abTestName field is not nullable. However, since I am Free free user I cannot create AB tests. The json data from Adapty when querying the paywall sends no or a null abTestName field. That's why it crashes on deserialization.
Update: I added an empty string so that the deserialization works and I can continue working. Whether this works as a permanent workaround I don't know.
The point is that the ab_test_name field is actually required and should always be present, even if the paywall is not an AB-test. So I don't think your plan is the problem.
I suppose our next steps should be this:
1) Send me as a email your Company name and a email address, to which the account is registered; 2) Add the full verbose log that comes from Adapty-Flutter and Adapty-iOS so that we can see all the errors that occur during the process; 3) "I added an empty string so that the deserialization works" – please attach a code snippet, where exactly did you add this?
Ok I don't get it. All of a sudden there comes a value with and I can receive the paywall...problem solved. Thanks for the time
With 2.3.1 i get this error. It seems that _Keys.abTestName is null for my paywall (free user):