Acknowledged

SDK bug in loading properties

Hello,

I have a boolean-property which stopped working, i.e. its value upon invoking

Toybox.Application.Properties.getValue("somePropertyKey")

is 'true' regardless of whether it is set to true/false in properties.xml;

Since it used to work I have changed SDK and found out it worked properly with older SDKs,
i.e. leaving code+properties intact (w/ the prop set to 'false'),
and only changing the SDK being used to compile/run, then compiling+running yield the following results:

  • connectiq-sdk-mac-4.1.1-2022-03-14-18db583bc: Properties.getValue return false, i.e. as expected
  • connectiq-sdk-mac-4.1.2-2022-04-07-15e8df3ed: Properties.getValue return false, i.e. as expected
  • connectiq-sdk-mac-4.1.3-2022-05-10-b3aaee541: Properties.getValue return TRUE instead of false
  • connectiq-sdk-mac-4.1.4-2022-06-07-f86da2dee: Properties.getValue return TRUE instead of false
  • connectiq-sdk-mac-4.1.5-2022-08-03-6e17bf167: Properties.getValue return TRUE instead of false
  • connectiq-sdk-mac-4.2.0.beta1-2022-10-11-bff57b73c: 'make' fails w/ 'Error 100' and does not provide any further details

Unless I am missing something, this is a bug, which might also be related to:

https://forums.garmin.com/developer/connect-iq/i/bug-reports/bug-boolean-properties-with-default-value-true-can-t-be-changed-in-simulator

https://forums.garmin.com/developer/connect-iq/i/bug-reports/sdk-4-1-1-settings-issues

  • I have a few bools in properties and 2 of them is set to false in properties.xml. And in 100% after new installation on device (f6p) is false (4.1.5). In sim also is false.

  • Where do you experience the problem? If it's in the simulator then it can also be another known issue (don't remember if there's a bug reported for that) but the workaround is that you need to clean all app data and apps (in the file menu) and then start your app in it.