I'm using the current version of the Android/Java SDK ( 0.3.0 )
When request responses timeout, the response data only contains the requestId, and no further data.
Looking at the implementation of the GS class, the relevant method looks like it should be adding "error" and "timeout" to the data as a key-value pair, but that data is not included in the data returned by the method.
Here's the method, you can see that errorResponse is initialized, but is unused:
Simon Purdie
I'm using the current version of the Android/Java SDK ( 0.3.0 )
When request responses timeout, the response data only contains the requestId, and no further data.
Looking at the implementation of the GS class, the relevant method looks like it should be adding "error" and "timeout" to the data as a key-value pair, but that data is not included in the data returned by the method.
Here's the method, you can see that errorResponse is initialized, but is unused:
GS.java
https://bitbucket.org/gamesparks/gamesparks-java-sdk/src/72b28b80d2eddd98224eff5418a5cbf205b6c190/src/main/java/com/gamesparks/sdk/GS.java?at=master&fileviewer=file-view-default
-----------------
protected void cancelRequest(AbstractRequest<?> request){
if (request.isDurable()) {
return;
}
Map<String,Object> errorResponse = new HashMap<>();
errorResponse.put("error", "timeout");
Map<String,Object> response = new HashMap<>();
response.put("requestId", request.getBaseData().get("requestId"));
request.onResponse(response);
}
------------------