Skip to content

Commit 3a34962

Browse files
committed
Hotfix manualStart on iOS
1 parent f3454ad commit 3a34962

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Versions
2+
## 6.13.2+1
3+
- Hotfix for manualStart on iOS
24
## 6.13.2
35
- Added new APIs such as `anonymizeUser` , `performOnDeepLinking`
46
- Added to the `startSDK` API, `onSuccess` and `onError` callbacks

ios/Classes/AppsflyerSdkPlugin.m

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,18 @@ - (void)initSdkWithCall:(FlutterMethodCall*)call result:(FlutterResult)result{
597597
id isUDPValue = nil;
598598
id isDisableCollectASA = nil;
599599
id isDisableAdvertisingIdentifier = nil;
600+
id isManualStart = nil;
600601

601602
devKey = call.arguments[afDevKey];
602603
appId = call.arguments[afAppId];
603604
timeToWaitForATTUserAuthorization = [(id)call.arguments[afTimeToWaitForATTUserAuthorization] doubleValue];
604-
manualStart = call.arguments[afManualStart];
605-
[self setIsManualStart:manualStart];
605+
606+
isManualStart = call.arguments[afManualStart];
607+
if([isManualStart isKindOfClass:[NSNumber class]]){
608+
manualStart = [(NSNumber*)isManualStart boolValue];
609+
[self setIsManualStart:manualStart];
610+
}
611+
606612

607613
isDebugValue = call.arguments[afIsDebug];
608614
if ([isDebugValue isKindOfClass:[NSNumber class]]) {
@@ -669,7 +675,7 @@ - (void)initSdkWithCall:(FlutterMethodCall*)call result:(FlutterResult)result{
669675
[[AppsFlyerLib shared] waitForATTUserAuthorizationWithTimeoutInterval:timeToWaitForATTUserAuthorization];
670676
}
671677

672-
if (!manualStart){
678+
if (manualStart == NO){
673679
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appDidBecomeActive) name:UIApplicationDidBecomeActiveNotification object:nil];
674680
[[AppsFlyerLib shared] start];
675681
}

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.13.2
3+
version: 6.13.2+1
44

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

0 commit comments

Comments
 (0)