Help with updating after changes made through ConnectIQ Mobile App

Thanks to several people in this forum, I have successfully created a test version of my watchface. I have also successfully added customization options through ConnectIQ mobile app. After making a change; however, I have to click to a widget and then back for the changes to show on the watch. I added the following function to my View.mc code, but it still is not updating. Please advise:

functiononSettingsChanged() {
Ui.requestUpdate();
}

  • onSettingsChanged() is in the App class, and not the view. So something like this:

    class SimpleApp extends App.AppBase {

    function initialize() {
    AppBase.initialize();
    }

    function onSettingsChanged() {
    Settings.load();
    Ui.requestUpdate();
    }

    ...
    }


    Also, be sure to check out point 10 in the new developer FAQ, for a simple wrapper function to avoid problems with "Number" type settings.

    Oh, for onSettingsChanged(), the easiest way to test that is in the sim with Eclipse. Start your app running, then use the "App Settings Editor" in the Eclipse 'Connect IQ" menu.
  • onSettingsChanged() is in the App class, and not the view. So something like this:

    class SimpleApp extends App.AppBase {

    function initialize() {
    AppBase.initialize();
    }

    function onSettingsChanged() {
    Settings.load();
    Ui.requestUpdate();
    }

    ...
    }


    Also, be sure to check out point 10 in the new developer FAQ, for a simple wrapper function to avoid problems with "Number" type settings.

    Oh, for onSettingsChanged(), the easiest way to test that is in the sim with Eclipse. Start your app running, then use the "App Settings Editor" in the Eclipse 'Connect IQ" menu.


    Thank you! Trying it now :)