So I follow this document step by step: Twilio Integration Plugin | Backendless Mobile Platform.
When I register a user, I keep getting a PlatformException with code 21211: PlatformException(21211, The ‘To’ number +27857882477 is not a valid phone number., The ‘To’ number +27857882477 is not a valid phone number., null).
What should the format be or should I have this number registered on Twilio? Not sure. I cannot download the generated API docs for some reason. I don’t really understand if the error is related to Twilio itself where I need to setup something or is it the format of the phone number? How can I check that Twilio is working? I do see the service under cloud code.
This code is giving the error:
BackendlessUser user = new BackendlessUser()
..email = "EMAIL-VALUE"
..password = "PASSWORD-VALUE";
user.setProperty("phoneNumber", "PHONE-NUMBER-VALUE");
Backendless.userService.register(user).then((registeredUser) {
String transactionId = registeredUser.getProperty("transactionId");
}
);
Regards