AnsweredAssumed Answered

Anonymous log in using account manager

Question asked by Mohamed aslam on Oct 5, 2015

HI guys can any body help us we are getting  the following error code msg  on trying anonymous log in, but it works fine for existing account example registered user or admin please its stopping us  for development.

 

 

AccountManager mAccount = AccountManager.getInstance(connection);
mAccount.sensitiveOperationOverInsecureConnection(true);
if (mAccount.supportsAccountCreation()) {
mAccount.createAccount(phone, phone, attr);

 

 

return true;
} else {
Log.e("account", "Cannot create account");
return false;
}@

 

 

10-05 12:51:23.381: D/SMACK(4576): SENT (1): <iq to='shaili' id='aeDK3-91' type='set'><query xmlns='jabber:iq:register'><username>+919033312222</username><phone>+9190333122 22</phone><last></last><password>+919033312222</password><first>aslam</first><na me>aslam </name></query></iq>

10-05 12:51:23.673: D/SMACK(4576): RECV (1): <iq type="error" id="aeDK3-91" from="shaili" to="7ebacf4f@shaili/7ebacf4f"><query xmlns="jabber:iq:register"><username>+919033312222</username><phone>+9190333122 22</phone><last/><password>+919033312222</password><first>aslam</first><name>asl am </name></query><error code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

10-05 12:51:23.709: E/XMPP(4576): XMPPError: bad-request - modify

 

Message was edited by: Mohamed aslam,Ramanathan

Outcomes