• it seems like supporting the back button widget is the intended way forward

    Yes, absolutely!

    However, the Weather app already calls for the clock UI, which sounds like it'd conflict with using Bangle.setUI({mode : "custom", back : function() … }) to provide a back button.

    I think it would still work fine. I just tested:

    Bangle.setUI({mode:"clock",back:function­() {
      Bangle.showClock();
    }});
    

    And I think that's good. I'm not really sure I understand the reasoning behind making the weather app behave differently to every other app (going to launcher instead of the clock) but my preference would be to make 'back' go back to the clock.

    Maybe we need some kind of UX guideline in the docs regarding the use of the back button?

    Yes, I guess this might clear things up? I'm just wary of adding to the existing pile of documentation when it seems not that many people read it anyway :)

    Or a default implementation going back to clock or launcher (configurable?).

    I think we'd already discussed this in a PR? Afaik nothing stops someone from making a one-line custom boot code app that does Bangle.showClock = Bangle.showLauncher if this is what they really want.

  • And I think that's good. I'm not really sure I understand the reasoning behind making the weather app behave differently to every other app (going to launcher instead of the clock) but my preference would be to make 'back' go back to the clock.

    The idea was less changing the way the app behaves and more removing the need to manually remove Bangle.CLOCK after setting the UI to clock. An "clocklike" UI that does not set that marker var would be enough for that. The clock UI messes with some widgets if users forget to remove Bangle.CLOCK and it is not easy to find if none of those widgets are randomly installed during testing.

    I think we'd already discussed this in a PR?

    Yeah, I think we did :) Actually fastload already includes some optional code to redirect close to every load to launcher so always going to clock is fine with me.

About

Avatar for halemmerich @halemmerich started