I added a simple WatchUi.Text animation to my glance view. No animation updates occur when simulating a Fenix 6. The animate callback is not invoked at any time. In the simulator a Fenix 6 Pro does animate in the glance view. I released an update to my widget that included this animation for Fenix 6 Pro's only. A user wrote back that the animation aborted early.
I'd like to have some indication that the animation won't finish. A flag in the callback, or just calling the callback would be sufficient so that I can take the appropriate action.
To test this, I copied my animation code to the main widget view and it works just fine on all watches in the simulator and on my own VA4. So, I know it's not something with the code. I did see the note in the programmers guide:
Devices that have less memory [3] will start the app only when the system deems it appropriate, and calls to WatchUi.requestUpdate()
will have no effect. Such a device could update the ‘Glance Page’ when it becomes visible (activated) and at least 30 seconds since last update.
Which I took to mean that the animate updates may not occur. Is this expected behavior?
My Text Drawable:
remText = new Ui.Text({
:text => REMSTR+"xxx",
:color =>Gfx.COLOR_WHITE,
:font => MFONT,
:locX => 0,
:locY => Y
});
Animation start in onShow()
Ui.animate(remText, :locX, Ui.ANIM_TYPE_LINEAR, 0, -animStop, 3.0, method(:refresh) );
draw in onUpdate()
remText.draw(dc);