Does anyone have any idea why I am continuing to receive the Fault == 1011 error? I had user registration working before and now I am not sure what the problem is:
-
(void)viewDidLoad {
[super viewDidLoad];
}
-
(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
-
(IBAction)onTappedDoneRegisteringButton:(id)sender {
[self userRegistration];
[self performSegueWithIdentifier:@“success” sender:self];
}
-(void)userRegistration {
@try {
BackendlessUser *user = [BackendlessUser new];
user.name = self.nameInput.text;
user.email = self.emailInput.text;
user.password = self.passwordInput.text;
BackendlessUser *registeredUser = [backendless.userService registering:user];
NSLog(@"User has been registered (SYNC): %@", registeredUser);
[backendless.userService login:self.emailInput.text password:self.passwordInput.text];
NSLog(@"Current User = %@", backendless.userService.currentUser);
}
@catch (Fault *fault) {
NSLog(@"Server reported an error(SYNC): %@", fault);
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"User was unable to register"] message:nil preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *dismissButton = [UIAlertAction actionWithTitle:@"Dismiss" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
}];
[alertController addAction:dismissButton];
[self presentViewController:alertController animated:YES completion:nil];
}
}