Android APP - SDK hang on start
In our Android app, we have sometimes the case, that the rainbow sdk hangs on startup and nothing happens.
We use following code:
RainbowSdk.instance().connection().start(newStartResponseListener() {
@Override
public voidonStartSucceeded() {
RainbowSdk.instance().connection().signin(email,password,"sandbox.openrainbow.com", newSigninResponseListener() {
@Override
public voidonSigninSucceeded() {
runOnUiThread(() -> {
Toast.makeText(getBaseContext(),getResources().getString(R.string.login_success),Toast.LENGTH_SHORT).show();
openContactsTabFragment();
});
}
@Override
public voidonRequestFailed(finalRainbowSdk.ErrorCode errorCode, finalString s) {
runOnUiThread(() -> {
Toast.makeText(getBaseContext(),getResources().getString(R.string.login_failed) + s,Toast.LENGTH_SHORT).show();
});
}
});
}
@Override
public voidonRequestFailed(RainbowSdk.ErrorCode errorCode,String err) {
Log.getLogger().error(LOG_TAG,"The Rainbow SDK service has encountered an error when trying to start.");
}
});
But none of the inline methods gets called.
In this case, the rainbow sdk is not connected, but initialized. There's also a connected user in the profile.
The last entry in the log is "I/System.out: info : [Connection]: >start Rainbow SDK"
-
Hi,
this happens only in following situation.
- the app is started for the first time on the device.
- the user enters a licence code and the rainbow sdk will be initialized for his applicationID and appSecret
- the app is restarted by a button click from within the app
- the user enters his rainbow login data, and the code from the first post gets called.
- nothing happens, because the start method dosen't returnIf we then close the app and remove it from the last running apps, so that we could make a could start, everything works.
If this happens only in the sandbox, i couldn't say, because in the moment i have no productive application, but i already asked our rainbow admin for that.
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires