Approach S60 Watchface/Widget issue

Hi guys,

I am trying to make my Watchface and Widget working on the new Approach S60 Golf watch. Unfortunately this turned out to be not that easy :)

The issue I have is that neither my Watchface nor my Widget are starting at all. The only error I get in the simulator is:

Failed invoking <symbol>Symbol Not Found Error

nothing else.

I debugged it and found out that this watch does not like when providing a WatchfaceDelegate object in "getInitialView". This does not work:

function getInitialView() {
var oView = new MyWatchfaceView();

return [ oView, new MyWatchfaceController(oView) ];
}


whereas this seems to work:

function getInitialView() {
var oView = new MyWatchfaceView();

return [ oView ];
}


I also checked my WatchfaceDelegate, removed the view parameter, but nothing helped.

Is this a known issue?

Thanks!

Bye
  • Former Member
    Former Member over 7 years ago
    The Approach S60 is still running the 2.2.x VM currently. The WatchfaceDelegate was introduced in 2.3.0, and is not yet supported. An update for the S60 that brings in the 2.3.x VM is planned, but I don't currently know what the expected schedule is.
  • Again, see the simple 1hz project I posted and look at getInitialView(). Like the answer to another question you had, it checks for onPartialUpdate to determine what to return. No delegate if there are is no onPartialUpdate(). When the S60 FW is updated, it will just start working.

    With a watchface, the delegate is used for the exceeding the power budget, but in a widget, for the input, as there is no power budget. Are you trying to use the watchfaceDelegate in a widget? That's something that will never work...
  • Again, see the simple 1hz project I posted and look at getInitialView(). Like the answer to another question you had, it checks for onPartialUpdate to determine what to return. No delegate if there are is no onPartialUpdate(). When the S60 FW is updated, it will just start working.

    With a watchface, the delegate is used for the exceeding the power budget, but in a widget, for the input, as there is no power budget. Are you trying to use the watchfaceDelegate in a widget? That's something that will never work...


    Yes, you are completely right, I missed that again :) Have added the check and it works.

    Thank you guys!

    Bye