AnsweredAssumed Answered

Change default resource while loginAnonymously

Question asked by Hiren on Dec 14, 2016
Latest reply on Dec 28, 2016 by Flow

Hello,

 

I want to change default resource 'smack'  to my custom resource name using smack library whille login as a Anonymously .

 

I can do when i login with specific username,password as show below

 

connection.login(username, password, "resourcename");

 

but how can i do the same from

 

connection.loginAnonymously();

 

Thanks,

Outcomes