• Watch Face Low- and High-Power Modes

    Connect IQ watch faces typically operate in a low-power state where the system requests updates every minute. When the user gestures to look at the watch, the system will request the watch face enter a high-power state. During this period, typically 10 seconds, the watch face can enable timers and play animations. Use this time to add some action to your watch faces.

    Always Active

    MIP watch faces by default update once a minute. High-power mode does allow drawing seconds or a second hand for a period, but sometimes the user wants that kind of information available the moment their eyes focus on the watch.

    Always-active watch faces can perform a partial update of the screen every second. The update must operate under a 20-millisecond time frame, which does not allow updating the whole screen but can allow for an update on a small portion. For example, the seconds area of this watch face (highlighted in pink) could be updated once a second:

    Always On (AMOLED)

    Devices with AMOLED displays typically disable the display when not in use to save power, but they do allow the user to enable an always-on mode. Because long-term display use affects the battery life and can wear down the display, Connect IQ has special rules for AMOLED always-on mode. When the watch face enters always-on mode, the watch face will only update every minute, and each update is limited to using 10% of the available pixels of the display. In addition, a burn-in prevention mechanism will further guide the use of the display on some devices.

    Many AMOLED devices have a setting to disable the gesture that returns the watch face to high power mode to save power. To avoid a poor user experience, it is expected that Connect IQ watch faces for AMOLED devices support always-on mode and keep the watch face visible in these cases.

    Get the SDK

    Get the SDK and update your watch faces today.

    • Aug 22, 2023
  • Elipse Plug-in Deprecation

    The Connect IQ Eclipse Plug-in has technically been unsupported since the release of the Visual Studio Code Monkey C Extension, but we've kept it available to allow developers time to transition from Eclipse to Visual Studio Code. As of August 28, the Eclipse plug-in will no longer be available for download. If you haven't already had the chance to shift your Connect IQ development environment to Visual Studio Code, now is a good time!

    Thanks

    - The Connect IQ Team

    • Aug 14, 2023
  • Connect IQ 6.2.2 SDK Release

    We have released Connect IQ SDK version 6.2.2, which contains some fixes for issues found in 6.2.1. Here is the list of changes and updates:

    General Changes

    • No changes

    Simulator Changes

    • Fix symbol not found error when calling WatchUi.makeReviewTokenRequest() on 3.4 devices.
    • Match the on-device page indicator for the Venu 2 family.
    • Fix issue preventing hitting breakpoints in Application.onStart().
    • Keep the communication open with debugger when a background app stops or the running app is restarted.

    Compiler Changes

    • Fix incorrect optimization of static constants that would lead to a runtime crash.
    • Fix the type checker to use the correct type for Array.removeAll().
    • Revert a change from 4.2.1 that caused an issue where a parent class’s member function isn’t called in some cases.
    • Aug 2, 2023
  • Connect IQ 6.2.1 SDK Release

    We've released Connect IQ SDK version 6.2.1, which contains a few small fixes for issues found in 6.2.0. Here is a list of the changes and updates:

    General Changes

    • No Changes

    Simulator Changes

    • Fix steps complication being returned as an int once steps reach 10000.
    • Fix transparency when displaying toasts on some devices.

    Compiler Changes

    • Fix issue with byte arrays that could prevent an app from exporting if byte array usage is surrounded by a has check.
    • Improve the too many members in module error when using Rez.Styles by suggesting a solution.
    • Fix complication icon scaling when the source image size does not match the complication icon size.
    • Jun 27, 2023
  • New Connect IQ For You in System 6.2

    In the second quarterly maintenance release of 2023, System 6 is getting some exciting new features that you can take advantage of in your Connect IQ apps.

    Wait, 6.2.0?

    You might be wondering about the new system number. After years of matching the SDK version with the Connect IQ API version, the SDK is getting a new versioning scheme:

    Version Digit

    Meaning

    Value

    Major

    The current system level of the Connect IQ platform

    6 (For System 6)

    Minor

    The current annual quarterly maintenance release

    2 (For quarter two)

    Micro

    SDK release within a quarter

    0 (First release in quarter two)

     Make sense? Good. Now here is what's new.

    Scalable Fonts

    Font support for Garmin devices can vary from device to device. All devices support Unicode bitmap fonts, but some devices support scalable fonts. If a device supports scalable fonts, the supported fonts are published in the Reference Guide as Scalable Font entries in the font list.

    To access a scalable font, you can call Graphics.getVectorFont() using the name from the device reference as the :face argument. The :face argument also will take an array of face names. This allows you to specify backup font faces that are acceptable for your needs in case the device doesn’t support your preferred choice. You can also specify the font size in pixels.

    Scalable fonts work with Dc.drawText() but can also be used with the Dc.drawAngledText() and Dc.drawRadialText(). These APIs only support scalable fonts and do not support custom fonts loaded as resources.

    We have new syntax for layouts. In layout definitions, there are three ways to refer to fonts:

    Reference

    Description

    Example

    System font reference

    Reference the standard FONT enumeration in the Graphics module.

    Graphics.FONT_SMALL

    Custom font reference

    Reference a font in application resources.

    @Rez.Fonts.MySmallFont

    Scalable font reference

    Reference a system scalable font. This is the font name and the pixel size separated by a colon. Additional font names can optionally be added separated by a comma.

    "#BionicBold:12,Roboto"

    Bitmap Transformation

    API level 4.2.2 introduces Dc.drawBitmap2() with some powerful new features.

    Connect IQ allows you to create two-dimensional affine transforms using the Graphics.AffineTransform class. AffineTransform provides access to the underlying transformation matrix and common operations like rotationscaling and shearing.

    To apply the transform, pass the AffineTransform into Dc.drawBitmap2() as the :transform argument in the options dictionary.

    Sometimes you want the color of an asset, like an icon, to be user-definable. For example, you may want the complication icons on a watch face to match a user-defined theme color. One of the features of Dc.drawBitmap2() is the ability to apply a tint color to an asset. The :tintColor option can be used to specify a color to apply to a white asset.

    Requesting Reviews

    As a developer, you want your users to review your apps after they’ve had positive experiences. Ideally, this would be a low-friction experience to maximize the number of users who leave positive reviews.

    For compatible devices, the steps to leave a review are as follows:

    • Request a review token
    • Receive a token from the store
    • Initiate the review process

    To prevent user harassment, apps must request permission from the app store to perform a review request. The app store validates a number of factors, including if you have recently requested a review from a user and if the user is using the most recent version of the app. The token request can be made with the WatchUi.makeReviewTokenRequest() call. This call is asynchronous, and you must provide this call with a Lang.Method callback.

    When the server responds to your review request, your callback will be invoked with the server response code and optionally the review tokens. The response codes are as follows:

    Response Description API Level
    REVIEW_REQUEST_STATUS_GRANTED Request is granted, and token has been provided 4.2.0
    REVIEW_REQUEST_STATUS_DENIED User does not meet review requirements 4.2.0
    REVIEW_REQUEST_STATUS_FAILED Cannot make review request at this time 4.2.0

    If you receive a token it should be valid for the current day. When you are ready for the user to review the app, you can use WatchUi.startUserReview() with the valid token from a token response.

    Red Shift

    The epixTm (gen 2) Pro series introduced a new feature called Red Shift that makes the watch easier to read in low light conditions. The Connect IQ simulator will now let you simulate red shift for testing purposes.

    Try It Today

    These System 6 features are now available for the following devices:

    Scalable Fonts

    Bitmap Transformation

    On-Device Reviews

    epix(gen 2)
    fēnix® 7 Series
    Forerunner® 265 Series
    Forerunner 955
    Forerunner 965
    MARQ® (Gen 2) Series

    Epix (gen 2)
    fēnix 7 Series
    Forerunner 255 Series
    Forerunner 265 Series
    Forerunner 955
    Forerunner 965
    MARQ (Gen 2) Series
    Venu® 2 Series
    Venu 2 Plus
    Venu Sq 2 Series

    Edge® 540
    Edge 840
    Edge 1040
    fēnix 6 Series
    fēnix6 Pro Series
    fēnix7 Series
    Forerunner 255 Series
    Forerunner 265 Series
    Forerunner 955
    Forerunner 965
    MARQ Series
    MARQ 2 Series
    Venu 2 Series
    Venu 2 Plus
    Venu Sq 2 Series

    Get the Connect IQ 6.2.0 SDK with the SDK manager today to update your apps with these exciting features.

    • Jun 15, 2023
  • fēnix 7 Pro and epix Pro Now Available on Connect IQ SDK Manager

    Designed to perform all day, every day — fēnix 7 Pro series and epix Pro series take smartwatches to the next level. Offering solar charging, an always-on display and premium materials, fēnix 7 Pro is made for those who measure adventure in weeks, not hours. With always-on, bright AMOLED display, three new sizes and built-in flashlights on all models epix Pro is made for the best of the best. 

    The fēnix 7 Pro series and epix Pro series are now available from the Connect IQ SDK manager. Update your apps to support them today.

    • May 31, 2023
  • Adding Personality to Your Application with Personality UI

    In the first few months of 2023, Garmin has released (among other products) the Forerunner 265 series, the Forerunner® 965, the Instinct® 2X, the Edge® 540 series and Edge 840 series. In addition to being a testament to the hardworking product teams, that is a lot of new products that will require Connect IQ support for your apps. And if you think that’s the last of the new products for 2023, well, you must be new to Connect IQ.

    System 6 adds Personality UI, a new design system for Connect IQ meant to simplify writing user interfaces across Connect IQ products. Personality UI combines a style language with a design library to better facilitate separation of view and business logic.

    Authentication

    When a Connect IQ app interfaces with a cloud service, one of the first steps the user will have to do is enter their user credentials. This involves asking the user to open an app on their phone. To give the user a sense of control, it’s best to make this a two-step process:

    1. Tell the user to perform an action to begin authentication.
    2. Direct the user to the phone to complete the authentication process.

    For step one, you’ll want to create a prompt with the action to perform. Step two will be a prompt with no action. It should be clear and progress when the user completes authentication on their phone.

    To get started, you’ll create a new Watch App project. In manifest.xml, set the minApiLevel to 3.4.0. Summon the command palette and enter the command Monkey C : Edit Products. Select all of the products in the list, and click okay to add them to the project.

    Define some strings for the prompts in resources/strings/strings.xml:

    <string id="authenticationPrompt">Press to log in</string>
    <string id="openCIQStore">Open the Connect IQ Store to complete login</string>
    

    The authenticationPrompt will go with the first page of the flow, which asks the user to perform the action, and openCIQStore will be the second page of the flow.

    To define these pages, let’s open up the Personality Library on developer.garmin.com. The Personality Library defines the components modeled in Personality UI. Go to the Prompts page and then the Prompts with No Title section. 

    Copy the XML example below into your resources/layouts.xml. Make sure the <layouts> tag wraps everything:

    <layouts>
        <!-- Informational Prompt -->
        <layout id="AuthPrompt" >
    
            <!-- Prompt Body -->
            <text-area text="@Strings.authenticationPrompt" id="mainLabel" personality="
                system_color_dark__text
                prompt_size__body_no_title
                prompt_loc__body_no_title
                prompt_font__body_no_title
            " />
        </layout>
    </layouts>

    If you’ve written layouts before, the personality attribute may be new. We’ll explain these selectors in a little bit, as they are an important part of Personality UI.

    Now let’s create a Monkey C view to display our new layout. Create a new source file source/AuthView.mc that loads the layout:

    import Toybox.Lang;
    import Toybox.Graphics;
    import Toybox.WatchUi;
    
    class AuthView extends WatchUi.View {
    
        function initialize() {
            View.initialize();
        }
    
        // Load your resources here
        function onLayout(dc as Dc) as Void {
            setLayout(Rez.Layouts.AuthPrompt(dc));
        }
    }

    For now, create an empty delegate for your view in source/AuthDelegate.mc:

    import Toybox.Lang;
    import Toybox.WatchUi;
    
    import Rez.Styles;
    
    class AuthDelegate extends WatchUi.BehaviorDelegate {
    }

    In your application source file, load the AuthView as the application initial view by editing the getInitialView() function:

        // Return the initial view of your application here
        function getInitialView() as Array<Views or InputDelegates>? {
            return [ new AuthView(), new AuthDelegate() ] as Array<Views or InputDelegates>;
        }
    

    If you haven’t already created a launch.json create one in the Run and Debug section of VS Code:

    Let’s run this app on the fēnix® 7. Hit F5 and select the fēnix 7 to launch the app in the simulator:

    We specified the string in the XML, but how did the text become centered horizontally and vertically? This is where the personality selectors come into play. Let’s look at them individually:

    Selector

    Meaning

    prompt_color_dark__body

    The text color for the body text of prompts with light-on-dark shading

    prompt_size__body_no_title

    The size of the body text of a prompt when a title is not involved

    prompt_loc__body_no_title

    The starting location of the body text of a prompt when a title is not involved

    prompt_font__body_no_title

    The font used for the body text of a prompt without a title

    Importantly, these definitions exist per-product. For the Instinct 2, the body text begins below the sub-window and is aligned vertically with the top to prevent interference between the body text and the sub-window:

    This is all well and good, but it’s just a text prompt. We’re not really indicating to the user what to press. Let’s fix that.

    Action Hints

    We’re going to co-opt the action menu button hint as our action indicator. Go to the Action Views chapter of the Personality Library, copy the Action Menu Hint XML, and paste into your AuthPrompt layout:

    <!-- Informational Prompt -->
    <layout id="AuthPrompt" >
    
        <!-- ActionMenu hint -->
        <bitmap id="actionMenu" personality="
            system_icon_dark__hint_action_menu
            system_loc__hint_action_menu
        " />
    
        <text-area text="@Strings.authenticationPrompt" id="mainLabel" personality="
            system_color_dark__text
            prompt_size__body_no_title
            prompt_loc__body_no_title
            prompt_font__body_no_title
        " />
    </layout>

    Now when we run the app on the fēnix  7, we’ll get the action hint for the start button:

    If you run the app for Instinct 2, you’ll get the hint, as well:

    Adding the Login Prompt and Button Input

    Let’s create the second prompt in our flow. We need another title-less prompt to direct the user to the phone. Add the following to resources/layouts.xml:

    <!-- Login Prompt -->
    <layout id="LoginPrompt" >
    
        <!-- Prompt Body -->
        <text-area id="mainLabel" text="@Strings.openCIQStore" personality="
            system_color_dark__text
            prompt_size__body_no_title
            prompt_loc__body_no_title
            prompt_font__body_no_title
        " />
    </layout>
    

    Now create source/LoginView.mc. Once again, it will be a wrapper around the layout:

    import Toybox.Graphics;
    import Toybox.WatchUi;
    
    class LoginView extends WatchUi.View {
    
        function initialize() {
            View.initialize();
        }
    
        // Load your resources here
        function onLayout(dc as Dc) as Void {
            setLayout(Rez.Layouts.LoginPrompt(dc));
        }
    }

    Now we want to handle the button associated with the action menu. Most of the time, this is the start button, but that isn’t guaranteed. Thankfully, Personality UI documents the inputs used in common components, as well.

    Create a new source file source/helpers.mc and add the following function:

    import Toybox.Lang;
    import Toybox.WatchUi;
    
    import Rez.Styles;
    
    (:typecheck(false))
    function isActionButton(button as WatchUi.Key) as Boolean {
        if (Styles.system_input__action_menu has :button &&
            button == Styles.system_input__action_menu.button) {
                return true;
        }
        return false;
    }

    Let’s look at this function. The Personality UI selectors we used in the resource XML earlier are accessible in the Monkey C code space via the Rez.Styles module. In this case, we are checking to see if the system_input__action_menu selector has the button symbol, and we’re referencing it if it does. This is because some products like the Venu® 2 series have a touch area for the action menu. We’ll get to that in a moment.

    Personality selector references are replaced with constants at compile time, so adding selectors should not take up precious run time heap.

    Let’s add the key handler into our AuthDelegate:

        function onKey(evt as KeyEvent) as Boolean {
            if ($.isActionButton(evt.getKey())) {
                onAction();
                return true;
            }
            return false;
        }
    
        function onAction() {
            WatchUi.switchToView(
                new LoginView(),
                new BehaviorDelegate(),
                WatchUi.SLIDE_IMMEDIATE
            );
        }
    

    Our onAction() now advances the flow from the first page to the second based on what button triggers the action menu:

    Venu 2 Has Entered the Chat

    Remember how we said mere paragraphs ago that the Venu 2 doesn’t have button input? Well, when you run on that device, the experience seems… off:

    If you’re familiar with Venu 2, you know the action menu button at the bottom typically shows a menu and is not used for advancing flows. Rather than writing a completely separate flow for the Venu 2, let’s make some small modifications:

    1. Rather than “Press to log in”, we want the action to be “Tap the screen to begin”
    2. Because the Venu 2 has an AMOLED display, let’s add some background imagery.
    3. Since the screen tap will trigger the flow, we want to remove the hint.

    Add the new string to resources/strings.xml:

    <string id="touchAuthenticationPrompt">Tap screen to log in</string>

    Now, we’re going to create our own personality selectors. Create a new file named resources/personality.mss:

    view_auth__action_hint {
    
    }
    
    view_auth__prompt_text {
        text: "@Strings.authenticationPrompt";
    }
    
    view_auth__background {
        exclude: true;
    }
    

    This is a new Monkey Style Sheet. It uses a CSS-like syntax to define properties. The resource compiler can read the properties from the selectors, with later selectors able to override earlier ones. One property never seen before is exclude. This is a new resource compiler option to eliminate a resource element.

    Now we are going to make the following changes to AuthPrompt in resources/layouts.xml:

    1. Add a background bitmap reference
    2. Remove the text="@Strings.authenticationPrompt" from the mainLabel
    3. Add view_auth__action_hint to actionMenu
    4. Add view_auth__prompt_text to mainLabel

    <!-- Informational Prompt -->
    <layout id="AuthPrompt" >
        <bitmap id="background" personality="
            view_auth__background
        "/>
    
        <!-- ActionMenu hint -->
        <bitmap id="actionMenu" personality="
            system_icon_dark__hint_action_menu
            system_loc__hint_action_menu
            view_auth__action_hint
        " />
    
        <!-- Prompt Body -->
        <text-area id="mainLabel" personality="
            system_color_dark__text
            prompt_size__body_no_title
            prompt_loc__body_no_title
            prompt_font__body_no_title
            view_auth__prompt_text
        " />
    </layout>
    

    If you run the application now on the fēnix 7 or Instinct 2, it should function the same way as before. We created a new background image, only to request it be eliminated by default using the exclude property.

    Now create a new directory resources-venu2022. Copy the image below (original available here) and save it as resources-venu2022/background.jpg:

    Now create resources-venu2022/personality.mss and add the following:

    view_auth__action_hint {
        exclude: true;
    }
    
    view_auth__prompt_text {
        text: "@Strings.touchAuthenticationPrompt";
        color: #FFFFFF;
    }
    
    view_auth__background {
        filename: "background.jpg";
        scaleX:  100%;
        scaleRelativeTo: "screen";
        packingFormat: "jpg";
    }

    Quick look at what’s going on:

    1. We are telling the resource compiler not to include the action hint.
    2. We are switching the string and color of the prompt.
    3. We are providing the image, scaling options and packing format for the background.

    We need to update our AuthDelegate.mc to handle touch input:

        function onTap(clickEvent as ClickEvent) {
            onAction();
            return true;
        }
    

    Finally, we need to tell the build system to look in our new folder for the following products:

    • Venu 2
    • Venu 2s
    • Venu 2 Plus
    • Venu Sq 2
    • Venu Sq 2 Music

    Open the monkey.jungle file and add the following:

    venu2.personality=$(venu2.personality);resources-venu2022
    venu2s.personality=$(venu2s.personality);resources-venu2022
    venu2plus.personality=$(venu2plus.personality);resources-venu2022
    venusq2.personality=$(venusq2.personality);resources-venu2022
    venusq2m.personality=$(venusq2m.personality);resources-venu2022
    

    For these products, we’re creating a new centralized location to look for the adapted personality information.

    When we run this on the Venu 2, it now looks completely different:

    Wrapping Up

    This just scratches the surface of Personality UI, but hopefully you can see its power. Personality UI provides a new component library to use as the foundation for your applications. Using monkey style sheets and jungles, you have new flexibility to separate view component definition from your source.

    • Apr 26, 2023
  • Instinct 2X Solar Now Available in Connect IQ SDK Manager

    Whatever you do, own it with Instinct® 2X Solar. This bold, rugged GPS smartwatch is tough enough to keep up with you and unique enough to fit your style. Take on life’s unlimited possibilities with preloaded activity profiles, health metrics, an LED flashlight and extended battery life, thanks to the Power GlassTm solar charging lens.

    The Instinct 2X Solar series are now available from the Connect IQ SDK manager. Update your apps to support them today.

    • Apr 12, 2023
  • Edge 540 and Edge 840 Series Now Available in Connect IQ SDK Manager

    Introduce the rider you are today to the one you’ll be tomorrow. The Edge® 540 and Edge 840 series of touchscreen cycling computers offers targeted adaptive coaching when used with your compatible power meter and heart rate monitor. Get superior positional accuracy in the most challenging environments, thanks to multi-band GNSS technology.

    The Edge 540 and Edge 840 series are now available from the Connect IQ SDK manager. Update your apps to support them today.

    • Apr 11, 2023
  • Forerunner 265 and 965 Now Available in Connect IQ SDK Manager

    Train brilliantly with the Forerunner® 265 and 965 running watches. Their colorful AMOLED touchscreen display stands out while the morning report, with HRV status, gives health insights (data presented is intended to be a close estimation of metrics tracked). The training readiness feature, which tells you when you’re primed for a productive session, helps you crush your goals. The Forerunner 965 full-color, built-in maps keep you on track when you’re en route.

    The Forerunner® 265 series and Forerunner 965 are now available from the Connect IQ SDK manager. Update your apps to support them today.

    • Mar 2, 2023