Acknowledged
over 1 year ago

BUG: makeWebRequest POST omits nested parameters in wifi mode

1. Through the Music Player > Sync Menu, the watch starts looking for WIFI, then shows the menu. From here, nested parameters are omitted.
2. Through the Music Player > Library Menu, the watch uses the BLE to perform webrequests. From here, nested parameters are included without issue.
3. During sync, nested parameters seem to be omitted.
4. In simulator, nested parameters seem to be omitted during sync.

The following code as a minimal example:

var parameters = {
    "properties" => {
        "prop1" => "value 1",
        "etc." => "etc.",
    },
    "top" => "value"
};

var options = {
    :method => Communications.HTTP_REQUEST_METHOD_POST,
    :headers => {
        "Content-Type" => Communications.REQUEST_CONTENT_TYPE_JSON,
    },
    :responseType => Communications.HTTP_RESPONSE_CONTENT_TYPE_JSON,
};

Communications.makeWebRequest(url, parameters, options, method(:onResponse));

The nested "properties" values get omitted by the webrequest, whereas top level properties like "top" => "value" are sent correctly. Tested on Vivoactive 4s, the nested properties are omitted when the menu is opened from the sync menu (after 'searching for wifi'). When the menu is opened from the Music Player > Library, and thus not connected to wifi, the nested properties are sent correctly, as well as the top level properties.

Parents Comment Children
No Data