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
explicitly check for 409 on Identify User response
* We were switching to the user when the Identify User request returns any failure, but we should really check that the code is `409` to go down this path. It could be some other error.
transferPushSubscriptionTo(aliasLabel: request.aliasLabel, aliasId: request.aliasId, retainPreviousUser:true) // update logic to determine flag
224
-
executePendingRequests() // Here or after fetch or after transfer?
219
+
if error?._code ==409{
220
+
OneSignalLog.onesignalLog(.LL_VERBOSE, message:"executeIdentifyUserRequest returned 409, failed due to alias already assigned to a different user. Now switch to this user.")
225
221
226
-
// If not 409, we retry, depending on what the error is?
0 commit comments