Start a new topic

Can't signup a user

I am trying to get users to signup in my app, but for some reason onFailure gets triggered and my apps says "Could not sign up. Try another username". I know my app key and app secret are correct because when I tried creating a user in kinvey console and tried logging in from my app, it works. My code doesn't create errors in android studio. So whats going on? This is my code:


UserStore.signUp(username, password, kinveyClient, new KinveyClientCallback<User>() {
@Override
public void onFailure(Throwable t) {
Intent intent = new Intent(RegisterActivity.this,RegisterActivity.class);
startActivity(intent);
CharSequence text = "Could not sign up. Try another username.";
Toast.makeText(getApplicationContext(), text, Toast.LENGTH_LONG).show();
finish();
}
@Override
public void onSuccess(User u) {
Intent intent = new Intent(RegisterActivity.this,HomeActivity.class);
startActivity(intent);
CharSequence text = u.getUsername() + ", your account has been created.";
Toast.makeText(getApplicationContext(), text, Toast.LENGTH_SHORT).show();
finish();
}
});

Hi Pixovex,

Please install latest Kinvey Android SDK v3.0.4. We are happy to inform you that the sign up problem is fixed in the latest SDK. Let us know if that works for you.

Regards,
Abhijeet

Abhijeet,

NOTE: MLIBZ-2053

 

Thanks,

Pranav

Hi Pixovex,

This looks like an issue in Kinvey Android SDK. Our engineering team is currently working on it. We will update you as soon as it is fixed. Thank you for reporting this problem.

Regards,
Abhijeet

I still can't sign up a user that does not yet.

Hi,

If you check https://devcenter.kinvey.com/android/guides/users#signup. It is mentioned that "If the user already exists, signup will result in an error." Please try signing up with different user. Also, when you create a user on Kinvey console using app key, it is created using master secret. You should never user master credentials on client side.

Thanks,
Pranav

 

Login or Signup to post a comment