How to handle widget showing E.showMessage with the watchface? #5479
Replies: 1 comment
-
Posted at 2022-12-14 by @gfwilliams
Which widget is this? Widgets really shouldn't do that because it will definitely break things - all the default ones load up a new app to avoid that kind of problem. There's also the But if you added a Then that would solve the problem, because showMessage would call the remove handler. But then after the message was gone you'd be left with nothing. ... and if the widget was running for pretty much any other app, that would break too - so I wouldn't recommend it Posted at 2022-12-14 by Hank It is https://github.com/espruino/BangleApps/tree/master/apps/widbt_notify In https://github.com/espruino/BangleApps/blob/master/apps/hworldclock/app.js I got the remove handler. Posted at 2022-12-14 by @gfwilliams Ahh, ok. Yes, It should really use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-12-14 by Hank
So, my watchface shows the seconds using setTimeout. I noticed that it will still redraw them even if a widget shows an E.showMessage above it. How do I handle that? Can I check for it somehow and then temporarily stop the timeout?
Beta Was this translation helpful? Give feedback.
All reactions