Skip to content

getAppBaseInfo ​

Called when the SDK requests basic app information. Add fields to the supplied JSONObject before returning; the SDK uses that same object.

Declaration ​

java
void getAppBaseInfo(JSONObject jsonObject);

The sample Wrapper adds version for the host app version. Do not replace the supplied object or defer modifications to an asynchronous task.

java
@Override
public void getAppBaseInfo(JSONObject jsonObject) {
    try {
        jsonObject.put("version", "1.0.0");
    } catch (org.json.JSONException e) {
        throw new IllegalStateException(e);
    }
}

Replace the example version with the actual host app version.