Cómo crear una cuenta desde Smack 4.1
Estoy tratando de crear una cuenta de Smack para Android en jabber.at. Aquí está mi código:
XMPPTCPConnectionConfiguration conf= XMPPTCPConnectionConfiguration.builder()
.setServiceName("jabber.at")
.build();
XMPPTCPConnection connection = new XMPPTCPConnection(conf);
connection.addConnectionListener(xmppConnectionListener);
connection.connect();
AccountManager accountManager = AccountManager.getInstance(connection);
Map<String, String> map = new HashMap<String, String>();
map.put("username", usr);
map.put("password", pwd);
map.put("email", email);
accountManager.createAccount(usr, pwd, map);
Recibí un error:
W/System.err﹕ org.jivesoftware.smack.packet.XMPPError@2beba168
W/System.err﹕ at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:217)
W/System.err﹕ at org.jivesoftware.smack.PacketCollector.nextResultOrThrow(PacketCollector.java:198)
He intentado con y sin el Mapa, el mismo error. Según Mathias Ertl de jabber.at, es posible crear cuentas de forma remota, por lo que estoy haciendo algo mal en alguna parte. Alguna idea ?