zello-android-client-sdk
zello-android-client-sdk copied to clipboard
Missing AppState events when attempting to sign in to non-existent network
I'm using the Android Client SDK to let users sign in to their zellowork network.
I've run into an issue where if the user misspells their network name, the app is not getting enough events to provide feedback to the user.
If the user enters the correct network name but wrong credentials, the app receives around 3 events, (1) where the isSigningIn
becomes true
and last error is NONE
. Then (2) isSigningIn
becomes false
and lastError
INVALID_CREDENTIALS
and finally (3) which seems to be the same as #2.
In contrast if the network url is of a zellowork-network that doesn't exist, I get no events and after a few seconds I get a single event, where isSigningIn
is false
, and lastError
is the NONE
. So there isn't much to determine that something went wrong, let alone what went wrong. (Additionally, the networkUrl
field in the app state is still pointing to whatever network was previously configured, or blank if the com.pttsdk
app was just installed/cleared)
Is this expected behavior? How can I be able to know that the network name/url doesn't match a real network?
I'm using com.pttsdk
version 4.56 (and testing now with 4.74) and sdk version 4.75 (same tag as 4.56)