diff --git a/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m b/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m index 304af66..5465413 100644 --- a/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m +++ b/segment-appsflyer-ios/Classes/SEGAppsFlyerIntegration.m @@ -165,7 +165,13 @@ - (void)identify:(SEGIdentifyPayload *)payload } - (void) start { - [self.appsflyer start]; + [self.appsflyer startWithCompletionHandler:^(NSDictionary * _Nullable dictionary, NSError * _Nullable error) { + if(error == nil){ + + [self.appsflyer logEvent:@"Start-Success" withValues:@{}]; + + } + }]; } @@ -257,7 +263,7 @@ - (void)onConversionDataSuccess:(nonnull NSDictionary *)conversionInfo { // If you are working with networks that don't allow passing user level data to 3rd parties, // you will need to apply code to filter out these networks before calling // `[self.analytics track:@"Install Attributed" properties:[properties copy]];` - [self.analytics track:@"Install Attributed" properties: [properties copy]]; + [self.analytics track:@"GCD-Success" properties: [properties copy]]; }