-
• #3
I actually tried that and it did not exit.
My code isBangle.loadWidgets(); Bangle.drawWidgets(); console.log('xxx'); load();
When starting the app it logs xxx and shows "Loading...".
-
• #4
Ah ok, havin load() instead of load(); helps. But the IDE is claiming "missing semicolon" then :)
-
• #5
Weird, I have
var standardMenu = { "" : {title : "Test intents", back : function() {load();}}, // ...more code..., }; Bangle.loadWidgets(); E.showMenu(standardMenu);
where I use a semicolon behind load() and that works to take me to the clock when I press the red software back button in the app.
-
• #6
I think you have to call it as the payload of a timeout. 20ms delay will do.
There is another thread about this as it is a question I once asked when I hit the same problem. -
• #7
I think the issue is the difference between:
var standardMenu = { "" : {title : "Test intents", back : function() {load();}}, }; // and var standardMenu = { "" : {title : "Test intents", back : load, // ...more code..., };
The functions in menus get called with the menu itself as an argument, so you're effectivaly calling
load({...})
and it can't find a file called"{...}"
so it doesn't load anything
Lame question:
How do I exit my app and return to the user's watchface without needing to push the menu button?