Skip to content

You are here: Network API

Network API

The Network API provides functions for network calls via HTTP or HTTPS. The Network API enables your app to request data from remote sources, such as your data servers, over the Internet. In also enables you to validate that the data requests and the responses have not been tampered with as they traveled between the client app and the server. The Network API comprises of the following modules:

The Network API uses the Namespace and the following API elements

Function Description cancels only async network calls. Synchronous calls have a platform-specific cancellation mechanism provided by the platform Removes cookies from the client that are associated with the specified domain. Call this function to create a FormData object. Retrieves the currently-active network type. Retrieves cookies associated with the specified domain. Determines whether the device has the specified capability. Creates an HttpRequest object. Enables you to check whether a network is available for data transport on a device. Sets a client certificate to be used for HTTPS client authentication. Invokes a Volt MX Foundry service asynchronously. Removes already loaded client certificate. Clears the default cache of an application by removing all responses received from URLs. Disables intregity checks for HTTP calls between the client and the server. Determines if the device has a 5G network connection to the app. Adds cookies, or replaces an existing cookie in the cookie storage. Enables the addition of checksums to HTTP calls for HTTP integrity checking. Allows the developer to register for network status changes. Sets a callback function that handles network events. Unregister from the 5G Network Listener. Converts a URL string from application/x-www-form-urlencoded format in the UTF-8 encoding. Converts a URL string into application/x-www-form-urlencoded format using the UTF-8 encoding.

To verify the identity of the server and establish a secure network connection through HTTPS, use the function. A client certificate for HTTPS client authentication is set. You can remove the client certificate by using the function.

To start with establishling a connection using HTTP, create an Http request object by using the function. After creating an object, invoke a required Volt MX Foundry service by using the function. Then use the function to validate HTTP messages passing between the client app and the servers. To disable the HTTP integrity checking, use the function.

Further, a URLs can be sent over the internet in ASCII format only. To convert a URL into valid ASCII format, use the function. Then use the function to convert the ASCII characters to readable format.

Please note that the and are deprecated and should not be used in new software. However, documentation for them is still available to help with the maintenance of legacy software.

Note: From V9 SP2 onwards, for etag caching of Network APIs, the data in a Volt MX App child app is stored in child app data and not under the parent app. This feature is applicable for iOS, Windows, and Android platforms.