I am trying to use the "stay logged in " functionality with Android SDK. It is working, the token has been saved in UserTokenStorageFactory, but i don´t know how to “reload” the logged in user, so i can have all its properties again, using the saved token. ¿Is it possible?
I was checking Android SDK in Github and i found UseIdStorageFactory class. The currentUserObjectId can also be obtained with UserIdStorageFactory.instance().getStorage().get()?
I was checking Android SDK in Github and i found UseIdStorageFactory class. The currentUserObjectId can also be obtained with UserIdStorageFactory.instance().getStorage().get()?
Regards,
Andrés[/reply]Yes, you can use this way, too. Moreover, this is how Backendless.UserService.loggedInUser() method is implemented. But the way Mark Piller suggested is more preferable, as it is more readable, obvious and short.