currentUser returning nil using login using Login API

Hi, I am using Backendless (3.0.21) IOS SDK and using the Login API with email and password to sign in a user.

My set up for Backendless:

  • setStayLoggedIn = true

  • Multiple simultaneous Logins = 1

This is what I encountered:

  • After login, currentUser remains nil even though the Login API returned a non-nil user object

  • When rerun app find that isValidToken returns false. When try to log in again I get “Multiple Login limit for same user account has been reached”

  • currentUser is NOT nil after login using Facebook login API so Facebook login API works correctly.

I tried using both the Sync and Async Login API but both do not save the currentUser object after login.

Hi Michael,

We will check this issue and let you know about a solution.

Internal ticket BKNDLSS-12573 is opened

Thank you!

Hi Michael,

We cannot reproduce this issue.
A sample project with pod ‘Backendless’ (3.0.21) was created, the base UserService operations were implemented and checked with “Enable Multiple Logins == 1”:
http://support.backendless.com/public/attachments/80d65520e02195ffcafeecde65a2c29f.png</img>
and it works OK.

There is sample project in attachment, you could try it and compare with your code. Let we know how it goes for you.

Regards,
Slava

TestUserService.zip (19.25MB)

Hi Slava, thanks for the reply and example attachment. I can confirm that currentUser is working now. Not sure if 3.0.22 fixed it or I did some thing wrong earlier but am very happy with the results now.

Many thanks!
Michael