Anonymous login with customized nickname


I have used the XMPPConnection method loginAnonymously() and it works fine but the problem that this method will create a random address. Therefore a random nickname will appear to the reciept client. Is there a way to specify the nickname string using this method (loginAnonymously()) ?

I will pleased if some one help me ?

That’'s not possible, you will have to create an account for this.

However, it’'s possible to define a custom nickname unrelated to the jid by using JEP-172.

Thanks anlumo for your help I will try your suggested method