Hi,
I asked this a few days ago but I was not very specific.
When I change from 3G to WIFI or WIFI to 3G I can no longer use my chat or any other AppWarp services.
Here is my ConnectDone code:
public void onConnectDone(final ConnectEvent event) {
Log.d("con", "CD"+event.getResult());
handler.post(new Runnable() {
@Override
public void run() {
// progressDialog.dismiss();
if (event.getResult() == WarpResponseResultCode.SUCCESS) {
Log.d("con", "Connection success");
} else if (event.getResult() == WarpResponseResultCode.SUCCESS_RECOVERED) {
Log.d("con", "Connection recovered");
} else if (event.getResult() == WarpResponseResultCode.CONNECTION_ERROR_RECOVERABLE) {
Log.d("con", "Recoverable in 5");
handler.postDelayed(new Runnable() {
@Override
public void run() {
GeoChatSingleton.theClient.RecoverConnection();
}
}, 5000);
} else {
}
}
});
}
When I change from 3G to WIFI event.getResult() produces a code of 9, i.e. recoverable. It tries to do that and then after the handler is called it gets a code of 1, i.e. AUTH_ERROR. Why is this happening and how can I change it?
I am using the MultiplayerGaming SDK on Android and I have got the listeners set up. The app runs perfectly if I stay on WIFI and similarly if I stay on 3G but changing is the issue. I have set up connection resiliency.