Widget Problem

I tried creating a simple weather widget which runs fine in the sim, but when I build project for device and then click the up button on my watch all I see is the ConnectIQ logo with an exclamation point. I get my "loading" text if I remove my makeJsonRequest call.

I do have the following in my manifest:

<iq:permissions>
<iq:uses-permission id="Communications"/>
</iq:permissions>

I am not sure if this is a bug, or just my stupidity. Has anyone successfully created and deployed a widget with makeJsonRequest to a 920xt?
  • Former Member
    Former Member over 10 years ago
    The exclamation graphic indicates that your app crashed. If you create the file "CIQ_LOG.TXT" inside the GARMIN/APPS/LOGS folder, you should get a crash log for this error, which should help track it down.
  • Thanks Brian,

    I created the log file and got this:

    in C:\Projects\Personal\Dev\Garmin\testwidget\source\testwidgetView.mc (onLayout:23)
    TVM ERROR:
    Symbol Not Found Error
    Failed invoking <symbol>

    TVM ERROR:
    Symbol Not Found Error
    failed in cdp_tvm_invoke


    That line is as follows:

    Comm.makeJsonRequest("api.openweathermap.org/.../weather",
    {"id"=>"6324733"}, {}, method(:onReceive));


    I also have a callback method defined as follows:

    function onReceive(responseCode, data)

    I have imported the following:
    using Toybox.Communications as Comm;
    using Toybox.WatchUi as Ui;
    using Toybox.Graphics;
    using Toybox.System as Sys;


    Any ideas?
  • Former Member
    Former Member over 10 years ago
    Well... it appears the Comm APIs did not get turned on in the FR920XT. I will try to make sure they are enabled for the next release.