Ticket Created
over 4 years ago

PHIL-627

Transferred

Edge Explorer 1000 FW 9.30 reporting it "has" connectionAvailable on device only.

I recently got contacted by a user of my widget who has an Edge Explorer 1000 who reported that after a recent update the widget that the widget always reported that the widget needed a connection to the phone.  The user reported that other CIQ apps had no problem detecting the phone connection but for some reason, mine does not.  In working with the user I have provided him a test build which writes a log file.  In a recent build I implemented the following function to try and better support devices with either an available LTE or WiFi connection.  This code sample has the additional debug checks included.

	function isConnectionAvailable() {
        System.println("fctns fctn isconnavailable");
		var info = System.getDeviceSettings();
       	System.println("info phoneConnected status: " + info.phoneConnected);
		if ( info has :connectionAvailable) {
        	System.println("info connectionAvailable");
	       	System.println("info connectionAvailable status: " + info.connectionAvailable);
			return info.connectionAvailable; //CIQ versions >= 3
		} else {
        	System.println("info phoneConnected");
			return info.phoneConnected; //CIQ versions 1 & 2
		}
	}

When run on the device, the above code prints the following into the log.

fctns fctn isconnavailable
info connectionAvailable status: false
info connectionAvailable

Which mean the FW is reporting that the device has connectionAvailable.  The issue is according to the SDK info the Edge Explorer 1000 and my own usage logs, the Edge Explorer 1000 is running CIQ 2.4.6, and connectionAvailable is a SDK 3.0 feature.  I have sent the user another test build to see what is being reported for both info.phoneConnected and info.connectionAvailable.  I suspect that connectionAvailable is always false, but phoneConnected is properly reporting the status.

In the simulator I get  the following when running the same code.

fctns fctn isconnavailable
info phoneConnected status: true
info phoneConnected

To reproduce use the above function in an app and build it for an Edge 1000/Explorer and run on a Edge Explorer 1000 with the latest firmware.

Parents Comment Children
No Data