Skip to content

Commit

Permalink
Merge pull request #311 from AppsFlyerSDK/dev/DELIVERY-59899/manualSt…
Browse files Browse the repository at this point in the history
…art-hotfix

Hotfix manualStart on iOS
  • Loading branch information
al-af authored Apr 10, 2024
2 parents f3454ad + 3a34962 commit 0990c11
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Versions
## 6.13.2+1
- Hotfix for manualStart on iOS
## 6.13.2
- Added new APIs such as `anonymizeUser` , `performOnDeepLinking`
- Added to the `startSDK` API, `onSuccess` and `onError` callbacks
Expand Down
12 changes: 9 additions & 3 deletions ios/Classes/AppsflyerSdkPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,18 @@ - (void)initSdkWithCall:(FlutterMethodCall*)call result:(FlutterResult)result{
id isUDPValue = nil;
id isDisableCollectASA = nil;
id isDisableAdvertisingIdentifier = nil;
id isManualStart = nil;

devKey = call.arguments[afDevKey];
appId = call.arguments[afAppId];
timeToWaitForATTUserAuthorization = [(id)call.arguments[afTimeToWaitForATTUserAuthorization] doubleValue];
manualStart = call.arguments[afManualStart];
[self setIsManualStart:manualStart];

isManualStart = call.arguments[afManualStart];
if([isManualStart isKindOfClass:[NSNumber class]]){
manualStart = [(NSNumber*)isManualStart boolValue];
[self setIsManualStart:manualStart];
}


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

if (!manualStart){
if (manualStart == NO){
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appDidBecomeActive) name:UIApplicationDidBecomeActiveNotification object:nil];
[[AppsFlyerLib shared] start];
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: appsflyer_sdk
description: A Flutter plugin for AppsFlyer SDK. Supports iOS and Android.
version: 6.13.2
version: 6.13.2+1

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

Expand Down

0 comments on commit 0990c11

Please sign in to comment.