I don't really know where to start as this problem is hard to reproduce and debug. I have recently developed a Widget for showing stats regarding cryptocurrencies on Samsung Gear devices, called CryptoWidget.
Everything works as it is supposed to. However, when the widget hasn't been active for a while, e.g. you switched to the clock-face or screen is switched off for some time, the widget becomes unresponsive. All event-handlers that are registred in the window.onLoad function seem to be removed. However, as soon as you switch to the next widget and then back again it starks working again.
I am including the script files in the html header and register my handlers like this
(function() {
window.onload = function() {
document.getElementById("someDiv").addEventListener('click', someFunction);
//...
I know this is very little information and I will happily provide more. Unfortunately, I have no idea what the reason for this could be. The Tizen documentation is, as usual, not really helpful. The problem is not reproducible in the emulator, only on actual devices. And even there, the log-dump does not give away if there were errors or anything else. It seems the whole onload function does not get executed.
Thanks for any ideas!