Where have you written that code? Is it in an app, or boot code?
If it's an app then if a different app gets loaded your app's code won't get called - could that be it?
I'm not sure how message overlay works - I assumed it didn't load another app, but I might be wrong
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Where have you written that code? Is it in an app, or boot code?
If it's an app then if a different app gets loaded your app's code won't get called - could that be it?
I'm not sure how message overlay works - I assumed it didn't load another app, but I might be wrong