[OutSystems UI] Network status detection

Forge Component
(83)
Published on 21 May (4 days ago) by OutSystems R&D
83 votes
Published on 21 May (4 days ago) by OutSystems R&D

Hi,

Why is the OutSystems UI client action GetNetworkStatus using the html5 navigator.connection.type rather than navigator.online?

navigator.connection.type is according to https://caniuse.com/#search=navigator.connection not available for ios. https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection mentions also that this is experimental technology.

navigator.online on the other hand is generally available https://caniuse.com/#search=navigator.online, and not experimental https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine.


Daniël Kuhlmann wrote:

Hi,

Why is the OutSystems UI client action GetNetworkStatus using the html5 navigator.connection.type rather than navigator.online?

navigator.connection.type is according to https://caniuse.com/#search=navigator.connection not available for ios. https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection mentions also that this is experimental technology.

navigator.online on the other hand is generally available https://caniuse.com/#search=navigator.online, and not experimental https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine.


Hi,


I think is because one is more old than other? And about IOS devices, they adapt any systems, so they guarantee the device with IOS works too.