Internet Network Checks

This section describes how you would go about monitoring and checking if a device has internet connectivity.

Ultimately, under the hood, the way we identify connectivity is verifying a valid network and then trying to reach a provided URL with a provided timeout.

Configuration

We have exposed the ability to configure which URL to test internet connectivity with as well as the timeout.

In Project Settings -> Plugins -> Android Utility Pack you will find the Internet Check section allowing you to configure these values if you wish to override the defaults.

To override the default values, you need to check Override Internet Check and then change the default values.

The default values are checking https://clients3.google.com/generate_204 with a timeout of 1500 ms.

Available Blueprint Nodes

Is Connected To Internet

API-1+

This blueprint node performs a manual check to see if the device currently has internet connectivity.

1

Return Value

An FInternetCheckResult describing whether or not the device is connected to the internet, and if not, the reason.

Setup Network Callbacks

API-21+

This blueprint node allows you to monitor changes in network connectivity.

The plugin listens for when the connectivity to the current network changes, when this happens it will perform an internet check and if the check results in a different result from the last, it will trigger the delegate informing you of the change.

1

On Network Connectivity Changed

A delegate producing an FInternetCheckResult every time the connectivity network changes and the internet check result is different.

You can simply click and drag this pin to create a custom event.