Skip to content

Commit ec27d63

Browse files
committed
On new session, user executor executes, and unpause operation repo
* On a new session, we will trigger the user executor to execute any pending requests, in case there is a failed create user request that should be retried. We can't rely on the operation repo flushing to trigger the user executor as it bypasses the operation repo.
1 parent 0d033d4 commit ec27d63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

iOS_SDK/OneSignalSDK/OneSignalUser/Source/OneSignalUserManagerImpl.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,9 @@ extension OneSignalUserManagerImpl {
535535
return
536536
}
537537
start()
538-
538+
539+
OSUserExecutor.executePendingRequests()
540+
OSOperationRepo.sharedInstance.paused = false
539541
updateSession(sessionCount: 1, sessionTime: nil, refreshDeviceMetadata: true)
540542

541543
// Fetch the user's data if there is a onesignal_id

0 commit comments

Comments
 (0)