Acknowledged

App with API 6.4.2 doesn't start since firmware 16.22 anymore

Hi folks,
since the todays firmware on 16.22 on my fenix 7x my app (https://apps.garmin.com/de-DE/apps/fb178fa4-b5df-4b29-ac2f-cae16b991766) can't be started on the watch anymore. There is NO crash screen or anything. The app has no reaction at all. I've tryed a new installation of it - with the same failure.
In the SDK are njo changes. What's up here?
Greetings, Judex

Parents
  • The simulator doesn't has that bug. When you load the *.prg file of the bin-folder into the watch you may check the functionallity of your app. Or load a beta-version into the garmin app-store.

    When I write code, I always declare all global variables at one place. So the following changes where easyly and quickly to do for me.
    I put all global variables into the *.app file: after the "import"-declarations and before the class in the format:

    import Toybox.Something;
    
    public var foo1;
    public var foo2;
    public var ...
    
    class MyApp extends Application.AppBase {
    ...


    I've done that workaround with all global vars that declare objects and arrays. (by the way: the declaraton of primitives global vars still works well).
    Within the class inside of "function initialize()" I gave the variables the correct global format and initilal content:

      function initialize() {
        AppBase.initialize();
        foo1 = {
            :item1 => new Object(),
            :item2 => 123.45,
            :item3 => "Hello World"
        foo2 = new Bar();
        ...
      }

    With that changes my app works properly again - no problems anymore. There's no need of further checks for null or castings.

    Greetings, Judex

Comment
  • The simulator doesn't has that bug. When you load the *.prg file of the bin-folder into the watch you may check the functionallity of your app. Or load a beta-version into the garmin app-store.

    When I write code, I always declare all global variables at one place. So the following changes where easyly and quickly to do for me.
    I put all global variables into the *.app file: after the "import"-declarations and before the class in the format:

    import Toybox.Something;
    
    public var foo1;
    public var foo2;
    public var ...
    
    class MyApp extends Application.AppBase {
    ...


    I've done that workaround with all global vars that declare objects and arrays. (by the way: the declaraton of primitives global vars still works well).
    Within the class inside of "function initialize()" I gave the variables the correct global format and initilal content:

      function initialize() {
        AppBase.initialize();
        foo1 = {
            :item1 => new Object(),
            :item2 => 123.45,
            :item3 => "Hello World"
        foo2 = new Bar();
        ...
      }

    With that changes my app works properly again - no problems anymore. There's no need of further checks for null or castings.

    Greetings, Judex

Children
No Data