We see a different behavior in the MBS and on our iOS and Android devices.
In the Simulator:
- navigator.network.connection.type returns the value that is defined in the Simulator menu (this is the old API and is deprecated).
- navigator.connection.type is undefined (this is the new and soon only official API).
On the devices:
- Both return the right value (deprecated API and new API)
The implication is that the following call:
WL.Device.getNetworkInfo(function (networkInfo) {
alert (networkInfo.ipAddress);
}
);
- Receives an
undefined
networkInfo object in the MBS. - Receives an object with the right value on the devices.