Complete
over 4 years ago

Will request to see what can be done about documentation.

Toybox.Position.getInfo() call causes Error: Symbol Not Found Error on fēnix 5X / tactix Charlie

Hello,

I have this code which is run in a watchface onUpdate():

using Toybox.Position as Posn;

var posnInfo = Posn.getInfo();

which is causing an error on a tactix® Charlie watch ( but not the simulator) 

Error: Symbol Not Found Error
Details: "Could not find symbol 'getInfo'"
Time: 2021-06-18T04:50:17Z
Part-Number: 006-B2604-00
Firmware-Version: '22.20'
Language-Code: eng
ConnectIQ-Version: 4.0.3

Positioning Permission is turned on in the manifest.xml.

Now, the API documentation says that the call is supported on fēnix® 5X / tactix® Charlie and doesn't say that it can return null.

What's happening here?  Can it be uncallable when the watchface starts up and then be OK later?

Is it a documentation error?

Parents
  • The simulator attempts to act as the device, but its not an emulator. So not everything that happens on the simulator can be reflected on the actual device. That would be an emulator and the resources to do that are not possible at this time.

Comment
  • The simulator attempts to act as the device, but its not an emulator. So not everything that happens on the simulator can be reflected on the actual device. That would be an emulator and the resources to do that are not possible at this time.

Children
No Data