I'm new to FitBit development (though have about 35 year software development experience), I've started experimenting with creating watchfaces and apps but I cannot get screen taps to work on the simulator. My app detects this fine on an actual versa but not on the simulator. Does the simulator produce the equivalent of screen taps? Or button presses? If so how?
Best AnswerWorks for me; you must be trying to detect the events differently to me.
Best AnswerI define the image as :
<image id="watchFace-1" class="clock-widget" href="background-1.png" pointer-events='visible' system-events='all' />
and in javascript:
let face_1 = document.getElementById("watchFace-1");
face_1.onclick = function(e) {NextFace();}
This works fine on an actual Versa, NextFace() is called when I tap on the screen image but in the simulator clicking on the image nothing.
Best AnswerUntested guesses:
Best AnswerOn further testing, this appears to be an intermittent issue. Sometime mouse clicks work and sometimes they don't. I haven't been able to track down any particular set of circumstances that stops clicks being triggered but will report back if I do discover anything.
Best AnswerIt could be some element (a line, a piece of text etc) interfering with some regions of your image. Try my suggestion from above.
Best Answer