I own a Fenix 3 and just started getting into Connect IQ SDK. My first project is a watch face and I'm facing some difficulty with app permissions.
What is working so far
When I just use SDK functions that do not require special permissions, everything works fine. I can build watch face apps, I can run them in the simulator and I can sideload and test them on the watch itself.
What is not working
I now want to use functions that require permission, e.g. Toybox.Position.getInfo(). To prepare this, I modified the manifest.xml like this
and then just used Toybox.Position.getInfo() in my app code. I can run the app in the simulator and everything works fine. However, when I sideload the app on the watch itself and run it there, the watch screen becomes blank for 1 or 2 seconds and then a standard replacement watch face is shown. Afterwards the CIQ_LOG.txt shows the following content:
ERROR: Permission Required
DETAILS: Permission required
STORE_ID: 00000000000000000000000000000000
CALLSTACK:
WARNING: Failed invoking <symbol>
STORE_ID: 00000000000000000000000000000000
WARNING: Unfreed memory on exit
STORE_ID: 00000000000000000000000000000000
Is there anything else to do in order to make the watch face work?
Some details about my environment:
4.18.0-20-generic #21~18.04.1-Ubuntu
Eclipse 2019-03 (4.11.0)
Connect IQ SDK 3.0.9
Fenix 3 Software Version 8.90