Skip to content

Commit 53a8dc3

Browse files
committed
Fixing logic for delaying setting external user id
We sometimes we don't create a new session if we force quit and come back within 30 seconds. This caused a bug where we would never send external ids. To fix this we just need to check that we have called for remote params
1 parent 8f0939d commit 53a8dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ + (void)setExternalUserId:(NSString *)externalId withExternalIdAuthHashToken:(NS
26682668
return;
26692669

26702670
// Can't set the external id if init is not done or the app id or user id has not ben set yet
2671-
if (!performedOnSessionRequest) {
2671+
if (!_didCallDownloadParameters) {
26722672
// will be sent as part of the registration/on_session request
26732673
pendingExternalUserId = externalId;
26742674
pendingExternalUserIdHashToken = hashToken;

0 commit comments

Comments
 (0)