I want to use phone number as username or user ID

Hey all I want to build a chat app and I am using smack library and Prosody server…

I want to use phone number as username or user ID and my problem is password.
Does smack have password generator
Anyone have hint or suggested URL😥

And I see Account Manager that it have phone number Listed but it is attributes.i think this will be my solution but is this possible that I want to get the phone number listed in accountmanager in userA and I want to scan userB phone contacts to see If it have userA phone contacts.my question is how I can do it?

Smack’s not really a library for secure password generation. That said, there are a few places where Smack itself needs to generate a secure token, so you may want to look at Smack’s StringUtils.reandomString(int).

This topic was automatically closed 62 days after the last reply. New replies are no longer allowed.