Converting Guest User via Google Sign In Error 3002

Backendless Version (5.x)

Client SDK (Swift )

Application ID 2E6E6142-3600-6FA9-FF2E-462B0F504F00

Expected Behavior

Converting Guest user to logged in user via Google Sign

  1. Login user as Guest
  2. User elects to sign in via Goolge in
  3. Google login Sing in Successful
  4. Backendless loginWithGoogle should convert guest user to normal user.

Actual Behavior

In our App we allow one user to be logged in at a time, converting a guest user to a signed in user via backendless works flawlessly, however if a user attempts to login via google we are getting 3002 error
“User is already logged in from another device/computer. The application is configured to disable multiple concurrent logins with the same user credentials.”

we are aware that the issue is due the guest user being persisted.

As you can surely aware we can only pass in access token in the below mehtod

public func loginWithGoogle(accessToken: String, fieldsMapping: [String: String], responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)!)

When converting a guest user to a Backendless user we use the below method and we can pass in a Backendless user as a parameter which in turn takes care of the user conversion.

public func registerUser(user: BackendlessUser, responseHandler: ((BackendlessUser) -> Void)!, errorHandler: ((Fault) -> Void)

  1. Login as Guest works as expected
  2. Google Sign in works as expected,
  3. Backendless login with google fails with error 3002

One work around is to logout the Guest user before google sign, however this would cause the Guest user to lose any data that was previously saved to Backendless. This is due to the user objectId being different.

Any suggestions, recommendations are highly appreciated and welcome.


@Omar_Darwish thank you for great case, we will discuss how to provide possibility to convert guest user with social login internal ticket id is BKNDLSS-20012

Dear Sergey,

Thank you for the prompt response.

Will be Standing by for some news.

Best Regards,