Ticket Created
over 4 years ago

WERETECH-11175

set/getProperty deprecate on sdk 4?

In current doc something has changed!!

Previous information: some function (e.g. deleteProperty) was planned to remove but not set/get.

My app run well and there are values in sim Application.AppBase.Data.

So, is documentation correct?

I have some strange app behaviour on sim:

- settings don't change

- memory peaks

- console  message "Unable to serialize app data"

- resetting settings to default

can be connected with any changes in sdk 4?

  • I'm going to double check this and move this over to our bug reporting tool. It's true that these APIs are deprecated, but they should still be available for use.
  • Oh but the SDK documentation does say that getProperty and setProperty are unavailable for *devices with Connect IQ 4.0.0 support" It does seem like they should continue to work for any devices except Venu 2/2S. developer.garmin.com/.../AppBase.html
  • [quote userid="281968" url="~/developer/connect-iq/f/discussion/262197/set-getproperty-deprecate-on-sdk-4"]I have some strange app behaviour on sim: - settings don't change - memory peaks - console  message "Unable to serialize app data" - resetting settings to default [/quote] I've seen similar behavior (settings don't change and/or settings are reset to default) when running low on memory for data fields, in both the simulator and the real watch. (Even in SDKs earlier than 4). It's possible that just building for a new SDK means that your app is using more memory than before. Is the current/peak memory usage for your app higher in SDK 4 than it was for earlier SDKs? The only workaround, as far as I know, is to close the app before sending settings (both for the real device and the sim.) In the sim, you can use File > Kill App to close the app without closing the sim.
  • That error often means you’re running _really_ low on memory.  It needs memory to write settings.