I see the sample code to get position and display information to the watch face.
After running it in simulator, i found that the app can not get location.
How to test it in simulator? :cool::cool:
[Sample of code to get position]
function onHide() {
Position.enableLocationEvents(Position.LOCATION_DISABLE, method(:onPosition));
}
function onShow() {
Position.enableLocationEvents(Position.LOCATION_CONTINUOUS, method(:onPosition));
}
function onPosition(info) {
posnInfo = info;
Ui.requestUpdate();
}