You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/operations/impl/executors/LoginUserOperationExecutor.kt
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,13 @@ internal class LoginUserOperationExecutor(
66
66
loginUserOp:LoginUserOperation,
67
67
operations:List<Operation>,
68
68
): ExecutionResponse {
69
+
// Handle a bad state that can happen in User Model 5.1.27 or earlier versions that old Login
70
+
// request is not removed after processing if app is force-closed within the PostCreateDelay.
71
+
// Anonymous Login being processed alone will surely be rejected, so we need to drop the request
72
+
val containsSubscriptionOperation = operations.any { it isCreateSubscriptionOperation|| it isTransferSubscriptionOperation }
73
+
if (!containsSubscriptionOperation && loginUserOp.externalId ==null) {
0 commit comments