Skip to content

Commit 080bcd7

Browse files
authored
Merge pull request #112 from AppsFlyerSDK/dev/fixvalidateAndLogInAppIosPurchase
Fix small bug with validateAndLogInAppIosPurchase API
2 parents edf1dfe + d3c7f32 commit 080bcd7

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Versions
22

3+
## 6.2.4+4-nullsafety
4+
- Fix small bug with validateAndLogInAppIosPurchase API
5+
36
## 6.2.4+3-nullsafety
47
- Small fix for enableFacebookDeferredApplinks, useReceiptValidationSandbox, disableSKAdNetwork, setPushNotification APIs in iOS
58

ios/Classes/AppsflyerSdkPlugin.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,14 @@ - (void)onValidateSuccess: (NSDictionary*) data{
339339

340340
-(void)onValidateFail:(NSError*)error{
341341
NSDictionary* errorObject = @{
342-
@"error": error.description
343-
};
342+
@"error": @"error"
343+
};
344+
if(error != nil){
345+
errorObject = @{
346+
@"error": error.description
347+
};
348+
}
349+
344350
[_streamHandler sendResponseToFlutter:afValidatePurchase status:afFailure data:errorObject];
345351
[self performSelectorOnMainThread:@selector(handleCallback:) withObject:@[errorObject,afValidatePurchaseChannel] waitUntilDone:NO];
346352
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: appsflyer_sdk
22
description: A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.
3-
version: 6.2.4+3-nullsafety
3+
version: 6.2.4+4-nullsafety
44

55
homepage: https://github.com/AppsFlyerSDK/flutter_appsflyer_sdk
66

0 commit comments

Comments
 (0)