Skip to content

Commit

Permalink
Post notification when integrations are initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
f2prateek committed Nov 6, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 63b9173 commit b83f901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Pod/Classes/SEGAnalytics.m
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
#import "SEGSegmentIntegrationFactory.h"

static SEGAnalytics *__sharedInstance = nil;
NSString *SEGAnalyticsIntegrationDidStart = @"io.segment.analytics.integration.did.start";


@interface SEGAnalyticsConfiguration ()
@@ -357,6 +358,9 @@ - (void)updateIntegrationsWithSettings:(NSDictionary *)projectSettings
self.integrations[key] = integration;
self.registeredIntegrations[key] = @NO;
}
[[NSNotificationCenter defaultCenter] postNotificationName:SEGAnalyticsIntegrationDidStart object:self userInfo:nil];
} else {
SEGLog(@"No settings for %@. Skipping.", key);
}
}

0 comments on commit b83f901

Please sign in to comment.