I'm trying to do the Goal Screen with animation on my Watch Face.
Here is the code containing animation:
function drawGoal(dc) {
var bitmap = new Bitmap({
:rezId => Rez.Drawables.smile,
:locX => dc.getWidth() / 2,
:locY => 50
});
bitmap.draw(dc);
Ui.animate(bitmap, :locY, Ui.ANIM_TYPE_EASE_IN, 10, 100, 5, null);
}
Everything is fine here. I see my bitmap if i do not call animate function. But if i do, i always get error Permission required.
Failed invoking <symbol>
Permission Required
in drawGoal
in onUpdate
Connection Finished
Can someone help me? Why i need permission here? Is Animation permission even exists?
Thanks.