Skip to content

Commit e11d05a

Browse files
committed
Move push registration to start method
1 parent 31f0f08 commit e11d05a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Analytics/Integrations/Kahuna/SEGKahunaIntegration.m

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ @implementation SEGKahunaIntegration
4545

4646
+ (void)load {
4747
[SEGAnalytics registerIntegration:self withIdentifier:@"Kahuna"];
48-
49-
// When this class loads we will register for the 'UIApplicationDidFinishLaunchingNotification' notification.
50-
// To receive the notification we will use the SEGKahunaPushMonitor singleton instance.
51-
[[NSNotificationCenter defaultCenter] addObserver:[SEGKahunaPushMonitor sharedInstance]
52-
selector:@selector(didFinishLaunching:)
53-
name:UIApplicationDidFinishLaunchingNotification
54-
object:nil];
55-
5648
}
5749

5850
- (id)init {
@@ -90,6 +82,13 @@ - (void)start {
9082
}
9183
}
9284

85+
// When this class loads we will register for the 'UIApplicationDidFinishLaunchingNotification' notification.
86+
// To receive the notification we will use the SEGKahunaPushMonitor singleton instance.
87+
[[NSNotificationCenter defaultCenter] addObserver:[SEGKahunaPushMonitor sharedInstance]
88+
selector:@selector(didFinishLaunching:)
89+
name:UIApplicationDidFinishLaunchingNotification
90+
object:nil];
91+
9392
[super start];
9493
}
9594

0 commit comments

Comments
 (0)