Skip to content

Commit a2efb97

Browse files
Merge pull request #428 from AppsFlyerSDK/dev/DELIVERY106333/StrictModeDLFix
moved the init to the right place
2 parents 2bb1183 + cc9c19b commit a2efb97

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

ios/Classes/AppsflyerSdkPlugin.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,11 @@ - (void)initSdkWithCall:(FlutterMethodCall*)call result:(FlutterResult)result{
834834
// isDebug is a boolean that will come through as an NSNumber
835835
isDebug = [(NSNumber*)isDebugValue boolValue];
836836
}
837+
838+
[AppsFlyerLib shared].appleAppID = appId;
839+
[AppsFlyerLib shared].appsFlyerDevKey = devKey;
840+
[AppsFlyerLib shared].isDebug = isDebug;
841+
837842
isConversionDataValue = call.arguments[afConversionData];
838843
if ([isConversionDataValue isKindOfClass:[NSNumber class]]) {
839844
isConversionData = [(NSNumber*)isConversionDataValue boolValue];
@@ -878,10 +883,6 @@ - (void)initSdkWithCall:(FlutterMethodCall*)call result:(FlutterResult)result{
878883

879884
[[AppsFlyerLib shared] setPluginInfoWith:AFSDKPluginFlutter pluginVersion:kAppsFlyerPluginVersion additionalParams:nil];
880885

881-
[AppsFlyerLib shared].appleAppID = appId;
882-
[AppsFlyerLib shared].appsFlyerDevKey = devKey;
883-
[AppsFlyerLib shared].isDebug = isDebug;
884-
885886

886887
// SEL WaitForATTSel = NSSelectorFromString(@"waitForATTUserAuthorizationWithTimeoutInterval:");
887888

0 commit comments

Comments
 (0)