deepStreamUtils.getClient().login() is not working on API 21, the same code runs perfectly along with subscribing to records on devices with newer APIs
After checking the code, weird thing is on API 21- devices
/**
Authenticate the user connection
@param authParameters The authentication parameters to send to deepstream
@param loginCallback The callback for a successful / unsuccessful login attempt
deepStreamUtils.getClient().login() is not working on API 21, the same code runs perfectly along with subscribing to records on devices with newer APIs
After checking the code, weird thing is on API 21- devices
/**
connection */ @ObjectiveCName("authenticate:loginCallback:") void authenticate(JsonElement authParameters, DeepstreamClient.LoginCallback loginCallback) { this.loginCallback = loginCallback;
} Whereas devices with API 22+: f( this.connectionState == ConnectionState.AWAITING_AUTHENTICATION ) { //This resolves to being True.
I hope this helps