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 haven't checked it but in my opinion its possibly

    1. choose sdk 1

    2. select targets 1

    3. build iq 1

    4. choose sdk 2

    5. select targets 2 (of cource diferent than 1)

    6. build iq 2

    7. iq's == zip, so put all directory from iq2 to iq1

    8 merge mainifest.xml 

    9 publish iq1

  • "3. Of course (but I'm not sure) it's possible to prepare iq file combining prg building with in different sdk but it produce more work (if not there should be several iq's for different platform)."

    I have actually wished for this feature but I don't think it's possible because:

    A) We can't control the IQ building process afaik

    B) The IQ file contains signatures for its PRGs, so you can't just build your own PRGs and put them in the IQ file (which of course is just a zip file)

    If I recall correctly, that is.

    I wanted this feature because I always worry that my apps will run out of memory for old devices when I build with a new SDK, and new SDKs often have 0 benefit for old devices (afaik).

  • 1. From previous post, developer can (and even should) use the latest SDK.

    2. It'll be removed form CIQ on devices so it'll be possible to compile code with set/getProporty with sdk >4 for devices with ciq <4, correct?

    3. Of course (but I'm not sure) it's possible to prepare iq file combining prg building with in different sdk but it produce more work (if not there should be several iq's for different platform).

  • We wanted to remove getProperty/setProperty with 4.0, but could not officially do so because the deprecation warning for those functions had been removed.

    The are officially deprecated now, and we plan to remove them with ConnectIQ System 5 (the docs will get updated soon, probably with the 4.0.2 release). You should update your apps to use the Application.Storage or Application.Properties modules on devices that have support.

  • hi mates,

    I asked to a Venu2 user with one of my watchface which has only App.getApp().setProperty / or getProperty, I mean no App.Storage or App.Property,

    and everything works as expected, so those don't seem to be depreciated at this time.