I'm attempting to make a image request in my widget with the following code on my Garmin Fenix 5+ with a iPhone,
var screenWidth = System.getDeviceSettings().screenWidth;
var options = {
:maxWidth => screenWidth - 10,
:dithering => Comm.IMAGE_DITHERING_NONE
};
var isBTConnected= System.getDeviceSettings().phoneConnected;
System.println("Before, BT Connected is " + isBTConnected);
Comm.makeImageRequest("https://barlet.nathanschile.com/image", null, options, method(:responseCallback));
isBTConnected= System.getDeviceSettings().phoneConnected;
System.println("After, BT Connected is " + isBTConnected);
The responseCallback method gets a response code of "0" and a data of null. When I run the code in the simulator, the image is returned as expected. I've verified bluetooth connection is connected. Is there a way to enable additional logging in SDK code? Any ideas on what may be going on? Thanks