diff --git a/mParticle-Localytics/MPKitLocalytics.m b/mParticle-Localytics/MPKitLocalytics.m index 1f51aa0..7eba395 100644 --- a/mParticle-Localytics/MPKitLocalytics.m +++ b/mParticle-Localytics/MPKitLocalytics.m @@ -116,7 +116,12 @@ - (void)dealloc { } - (void)start { +#if TARGET_OS_IOS==1 [Localytics integrate:self.configuration[@"appKey"] withLocalyticsOptions:nil]; +#elif TARGET_OS_TV==1 + [Localytics integrate:self.configuration[@"appKey"]]; +#endif + if ([UIApplication sharedApplication].applicationState != UIApplicationStateBackground) { [Localytics openSession]; }