Const
Get the current network connectivity status.
In the iOS app, returns accurate connection type from the native layer. In the browser, falls back to navigator.onLine — note that this may return true on captive portals even without real internet access.
navigator.onLine
true
A NetworkStatus object with connected and type.
connected
type
const { connected, type } = await mobilelocker.network.getStatus()if (!connected) showOfflineBanner() Copy
const { connected, type } = await mobilelocker.network.getStatus()if (!connected) showOfflineBanner()
Get the current network connectivity status.
In the iOS app, returns accurate connection type from the native layer. In the browser, falls back to
navigator.onLine— note that this may returntrueon captive portals even without real internet access.