Support Topics Documentation Slack YouTube Blog

Invisible User Property

(Saad Zahoor) #1

I set the property when the user is register

BackendlessUser user = new BackendlessUser();
user.setProperty( “email”, email.getText().toString().trim() );
user.setPassword( password.getText().toString().trim() );
user.setProperty(“isVerified” , “NO”);
user.setProperty(“appVersion” , “1.0”);
user.setProperty(“name” , FIRST_NAME + " " + LAST_NAME);

in the above code, all other properties are showing on the console except for the isVerified one so I try to define this property using the console but when I try it says

User property with the name isVerified already exists

I believe the property is created during registration but not showing on the console

I also tick all the columns that are present in my Users Table but I did not see the column isVerified

(Sergey Chupov) #2


What is your application ID?

(Saad Zahoor) #3

This is my app ID


(Saad Zahoor) #4

If you did something then Thanks alot
Now i see the property

(Sergey Chupov) #5

No, I didn’t, but I connected to your application and verified that I was able to see the column.
Probably it was some browser console cache, it should clean up as soon as you refresh the whole page.

(Saad Zahoor) #6

oh i see i wanna know can we fetch the property value by using method like

if (Backendless.UserService.CurrentUser() != null){
// user is login

BackendlessUser user = new BackendlessUser();

String verification = user.getProperty(“isVerified”).toString();
String appVersion = user.getProperty(“appVersion”).toString() ;
String userName = user.getProperty(“name”).toString();

(Sergey Chupov) #7

It should be possible. Does the code you provided work?

(Saad Zahoor) #8

it returns null

if (Backendless.UserService.CurrentUser() != null){
// user is login
Toast.makeText(this, “Lo is user”, Toast.LENGTH_SHORT).show();
BackendlessUser user = new BackendlessUser();

String verification =String.valueOf(user.getProperties().get(“isVerified”));
String appVersion = String.valueOf(user.getProperties().get(“appVersion”));
String name = String.valueOf(user.getProperties().get(“name”));
Toast.makeText(this, "Name : "+ name + "\nApp Version : " + appVersion + "\nVerification : " + verification, Toast.LENGTH_SHORT).show();