Property does not set

why not set property in user data in android studio.cb

Hello @sahand_moshtael!
Welcome to our community and thank you for trying out Backendless.

I will be glad to help you. Please give me a more detailed description to better understand the problem.

Regards, Alexander

I created a program that I need to create a hash map and give it to backendless but the user data does not show that hash map.

for example i want to put (TimeLogin = “3:20”) current_user.setProperty(“TimeLogin”,“3:20”)

but you can see does not exit in the columns

please help me :slight_smile:

Thank you

Please provide your code as well

Regards,
Alexander

private var current_user:BackendlessUser? = null
override fun onCreate() {
    super.onCreate()
    Backendless.initApp(applicationContext, APP_ID, API_ID)
    loginUser()
}
private fun loginUser() {
    val email = "example@gmail.com"
    val password = "123456"
    Backendless.UserService.login(email,password,object :AsyncCallback<BackendlessUser>{
        override fun handleResponse(response: BackendlessUser?) {
            current_user = Backendless.UserService.CurrentUser()
            current_user?.setProperty("user_name","sahand")
            current_user?.getProperty("user_name")
        }

        override fun handleFault(fault: BackendlessFault?) {
            
        }
    })
    
} // return current user

I think the problem is that you are not saving the changed user.
You can find more information about this here: Saving Single Object