Hi,
I’m trying to allow players to reconnect if they go offline but later reconnect. However, that doesn’t seem to be working. I’ve posted this issue on the Github repo as well. I couldn’t find anything obvious in the library, e.g. a check for internet connection or state saving when offline, so posting this here as well.
Steps to reproduce
- Start an app without an internet connection, e.g. with Wi-fi turned off.
- Attempt to send a request when offline, e.g.
PlayFabClientApi.LoginWithCustomID
. The request should fail as expected. - Turn wifi on.
- Attemp to send a request without restarting the app.
Actual outcome
Request fails with the following error message:
Defold version
Version: 1.2.159
Editor SHA1: c3e32c38ee70eec1524e1d2d0ad596629285cfb3
Platforms
Tested on macOS Mojave and Android 11
Logs
ERROR:SCRIPT: Unable to create HTTP connection to 'https://TitleId.playfabapi.com/Client/LoginWithCustomID?sdk=DefoldSdk_0.59.190625'. No route to host?
DEBUG:SCRIPT:
{ --[[0x10bcefed0]]
error = "ServiceUnavailable",
errorCode = 1123,
code = 0,
status = 0,
errorMessage = "Could not deserialize reseponse from server: "
}
Expected outcome
Request should work
Let me know if it’s library issue and/or if there’s any additional info I could provide to help with debugging.