react-native-xmpp
react-native-xmpp copied to clipboard
[Android] Support for different SASLMechanism
Hi, i have encountered some problem on android side. My Servers authenticate with PLAIN SASLMechanism, but library does not support it, and dont use authMethod parameter.
And what i have found SecurityMode is always required, which is not always good. I could do PR for this.
Hi @HugoMaster . That sounds awesome. My server is also using plain, and from what I can see, Smack seems to promt for authentication methods.
Please make the PR, it would be a great contribution.
Regarding the security mode - I think a lot of these things should have a seperate config method, where you pass a configuration to the XMPP class. This could also include things like timeout etc.
@HugoMaster Any news on this? Do you still think SASLMechanism's is an issue in react-native-xmpp/android ?