Acknowledged

Given that a newer SDK is required to build for CIQ 5.x devices, what does this mean for existing apps on devices that were upgraded from CIQ 4 to CIQ 5 (e.g. FR955, Fenix 7, etc)? Do these apps just break?

Background:

- it has always by my understanding that if you build an app for a device with a given SDK, then that app should continue to work regardless of future firmware updates (in general). This ofc excludes situations where:

  - the new firmware update has a bug or breaking change

  - the existing app has a dormant bug which is exposed by a legit change in new firmware. e.g. newer firmware has a change where Weather.CurrentConditions.observationLocationName is null, and this caused several existing watchfaces to crash because they assume that field will never be null. But that's an application error, since that field has always been typed to be possibly null

- CIQ 5.* devices require various 7.X (or 8.X) SDKs to run properly

- Compilers have a check to ensure you don't try to build a a too-new device with a too-old device

- Due to a bug in this check, where older compilers (pre 7.2.0) seem to incorrectly believe that SDK version X can build any device with CIQ version X (or lower), it's possible for an SDK 6.X compiler to build an app for CIQ 5 devices. However, it's very possible that such an app will crash when it's run in the simulator or the device (we've already seen "bug reports" about this

- The existing crop of devices that came out with CIQ 4 (e.g. fr955, fr965, fenix7) have all been updated to CIQ 5. As far as I know, this is the first time that existing devices have received a major CIQ update since the move from CIQ 1 to CIQ 2.

- Someone in the CIQ team already clarified that CIQ 5 devices require apps to be built with newer SDKs.

So here's what I don't understand.

The two following statements seem to be mutually exclusive:

- If an app is built for a device with an existing SDK (e.g. SDK 6.4.0) it will continue (in general) to work on the device for all future firmware updates

- Devices with CIQ 5.* require a 7.X or 8.X SDK

The problem is that it was entirely possible to build an app for an fr955 (for example) with SDK 6.4.0 in the past, when fr955 was only on CIQ 4. If I installed such an app on my fr955 when it had CIQ 4, it would expect it to continue to work now that my device is on CIQ 5.

So how can it be possible that going forward, a 7.X or 8.X SDK is required to build for my fr955?

What am I missing? Has something also changed with the device files that's relevant here?

  • Old PRGs will continue to run on devices with updated firmware and CIQ versions because there was no way those PRGs could have been compiled with knowledge of newer APIs. I don't believe it is strictly impossible to devise a system that allows you to build with older SDKs minus the support of new APIs, but historically that is not how it has been done. Personally I think it would make things more confusing to understand what device supports what if that were the case rather than keeping device configs up to date and using the latest SDK. On the rare occasion there are backwards compatibility breaking changes so it is best to avoid this potential complication.

  • I will also reiterate that the move from CIQ 4 to CIQ 5 is the first time in a long time that existing devices have received a major CIQ version update (the last time was CIQ 1 to 2, almost 9 years ago).

    In the past:

    - CIQ 2 devices never received CIQ 3

    - CIQ 3 devices never received CIQ 4 (in fact this was the impetus for the "CIQ system level" scheme, which is a version scheme created to track parallel updates to both CIQ 3 and CIQ 4 device). So for example, something major like the introduction of the graphics pool (and the requirement to change code related to buffered bitmaps) would not break any existing apps that were already installed on a CIQ 3 device, since no CIQ 3 device would be able to receive a CIq 4 update.

    I also don't remember any reports of existing apps breaking during the update to CIQ 1 to CIQ 2, but that was a long time ago.

    I guess what I'm saying is that if indeed CIQ 5 firmware is not compatible with apps built for CIQ 4, this would seemingly be the first time in a long time that apps would automatically break (in general), due to a firmware update.

    But then again, have we seen mass reports of apps breaking due to firmware updates (other than the observationLocationName thing)?

    If it was possible for existing apps to break due to firmware updates, wouldn't we expect Garmin to take steps here to warn users or devs (maybe even disable apps that haven't been updated, although that would surely be wildly unpopular)? (Other than posting stuff in the forums like "Connect IQ developers need to be constantly updating their apps in order to keep up with device firmware updates")

  • thanks for the response!

    "As device configs are updated to newer CIQ versions (say going from 5.1 to 5.2) a newer SDK will needed to be used that supports that version)."

    Yes but what does this imply about an app that was built and installed a device (e.g. fr955) that was on an older API level (e.g CIQ 4.x) using an older SDK (e.g. SDK 6.4).

    Once the fr955 in question is updated to CIQ 5.x, will an existing app installed on the device that was built for an older API with an older SDK cease to work?

    If so, this seems like a serious problem, as it would imply that *in general*, CIQ apps will stop working once the device firmware is updated, and devs are required to constantly update their apps to "keep up" with new firmware. Indeed, this is actually the impression that many (non-dev) forum members have, and it has also been stated (in different words) by (non-CIQ) Garmin support employees, in the forums.

    If not, then why shouldn't it be possible to build an app for a device with a newer CIQ API (e.g. 5.x) with an SDK that only supports older APIs (e.g. 4.x)? Obviously there's no question of using any of the newer features that are unavailable in the old API.

    My observations:

    - I haven't seen any mass reports of apps that suddenly stopped working with recent firmware updates to devices that were initially released with CIQ 4, but now have CIQ 5. The closest thing to that I've seen is several reports of watchfaces breaking because Weather.CurrentConditions.observationLocationName is now returned as null by device. But this is an exception to the rule, not the general case, and it actually points to a coding error (and not backwards incompatibility wrt to the firmware/SDK) since observationLocationName was always typed to be possibly null

    - However, I have seen dev reports of problems when (incorrectly) building an app with SDK 6.4.0 (for example), but running it on a CIQ 5 device (whether it's a real device or in the simulator). Note that this is only possible because of a bug in all SDKs prior to SDK 7.2.0 where the compiler would incorrectly assume that if the current SDK is version X, it should be able to build for all CIQ APIs <= X. (This was a correct assumption before "system levels" were invented.)

    I think some of the problems including the app crashing in the sim (due to a version check) or the app crashing due to generated resource code that doesn't work with CIQ 5

    So I'm still not able to reconcile these two possible alternatives: either new device firmware is backwards compatible with apps built with old SDKs, or it is not.

  • A SDK can only build up to the API levels it knows about. So SDK 8.1.0 will be able to build for devices that have a CIQ version of 5.1.0 (System 8 API Level) or older. As device configs are updated to newer CIQ versions (say going from 5.1 to 5.2) a newer SDK will needed to be used that supports that version).

    The files in the SDK contain the database of the API and older version don't contain the newer APIs that get added. If you were able to build for devices that support a newer CIQ version using an older SDK then you would get errors when using newer APIs.

  • Nobody knows why...

    Yep, hence this bug report. I hope the CIQ team can shed some light on this issue.

    which means that it is not possible to run the compiled application from one device to another unless they are compatible, of course

    It’s no longer relevant but in the past it was absolutely possible to copy a PRG off an old device and sideload it to a new device, with a high likelihood of the app “working” to some degree (although it might not look right due to resolution differences.)

    This is no longer relevant bc:

    - on newer devices (any currently updated/supported device), all PRG types are hidden (in the past it was only a handful of types)

    - newer devices will apparently not accept sideloads from older devices anyway (so if you have a PRG from an obsolete device, it’s useless on newer devices)

    I strongly feel that something fundamental has changed with CIQ 5 with regards to backwards/forwards compatibility, but I want to hear it from Garmin.