Skip to content

Commit 2497c3f

Browse files
committed
Ensure swizzling in main thread (#557)
(cherry picked from commit ea3caea)
1 parent 90103e5 commit 2497c3f

File tree

1 file changed

+2
-2
lines changed
  • LeanplumSDK/LeanplumSDK/Classes/Internal

1 file changed

+2
-2
lines changed

LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,6 @@ + (void)startWithUserId:(NSString *)userId
712712
userAttributes:(NSDictionary *)attributes
713713
responseHandler:(LeanplumStartBlock)startResponse
714714
{
715-
[[Leanplum notificationsManager].proxy setupNotificationSwizzling];
716-
717715
if ([ApiConfig shared].appId == nil) {
718716
[self throwError:@"Please provide your app ID using one of the [Leanplum setAppId:] "
719717
@"methods."];
@@ -728,6 +726,8 @@ + (void)startWithUserId:(NSString *)userId
728726
return;
729727
}
730728

729+
[[Leanplum notificationsManager].proxy setupNotificationSwizzling];
730+
731731
[LPFileManager clearCacheIfSDKUpdated];
732732

733733
[[LPCountAggregator sharedAggregator] incrementCount:@"start_with_user_id"];

0 commit comments

Comments
 (0)