Good people of StackOverflow, please help. I\'ve set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered
Works for me this code to register a new account:
try
{
connection.connect ();
Log.i (TAG, "Connect");
mAccount = new AccountManager (connection);
if (mAccount.supportsAccountCreation ())
{
mAccount.createAccount ("user", "pass");
}
with the following settings ejabberd:
{access, register, [{allow, all}]}.
It is a very secure setup because it can record without our authenticated accounts on the server (the method supports.AccountCreation () returns us true).