Network status / connectivity check | Aquro Help Center

Intro

Several services within Aquro rely on knowing the connectivity/network status of a device, and you may wish to use these checks in your own functions as well. Here's how you can do just that!

 

Via Visual Coding

Device.Info.GetInfo
Gets information about the device.

Parameters:
None

Return values:
manufacturer (Value) - Manufacturer of the device
model (Value) - Device model
platform (Value) - Platform (iOS/Android)
uuid (Value) - Unique ID of the application on this device
version (Value) - Version of the platform
Error (Value) - Error if something went wrong

Outlets:
ReceivedInfo - Called when a location was found
Error - Called if something went wrong

 

Device.Network.GetState
Checks for the current network state.

Parameters:
None

Return values:
state (Value) - The current state of the network connectivity.
Error (Value) - Error if something went wrong

Outlets:
ReceivedState - Called when a state was received.
Error - Called if something went wrong

 

 

Via JavaScript and advanced code usage:

You can always use your own custom JavaScript code to work with the the device and network information services.

For general device information Aquro is using the cordova-plugin-device plugin.
More info: https://github.com/apache/cordova-plugin-device/

For network information Aquro is using the cordova-plugin-network-information plugin.
More info: https://github.com/apache/cordova-plugin-network-information