Ticket Created
over 3 years ago

TREES-7261

Issue identified on F7/Epix 2 where CIQ Apps would not exit if the user swipes right on the apps Splash screen.

Bad simulation in simulator

Implementing an app for a touchscreen device is risk is you don t own a touch screen device. Once again I face an issue and I am blind to fix it.

On VEnu2s my app craches when the user press the 'lap' button, it works perfectly in simulator, and seems to work with vivoactive 4 real device.

and this is the log I have

---
Error: Unhandled Exception
Time: 2022-04-30T08:37:13Z
Part-Number: 006-B3704-00
Firmware-Version: '8.11'
Language-Code: eng
ConnectIQ-Version: 4.0.8
Store-Id: 2bb23569-d37d-401c-881c-8c65b641e15c
Store-Version: 113
Filename: BCAD1235
Appname: 'Cross-Training T.'
Stack:
  - pc: 0x1000675c
  - pc: 0x10007738
  - pc: 0x10007854
  - pc: 0x10001b5c
  - pc: 0x10001ac1
  - pc: 0x30003108

any clue?

I am lucky because yesterday a user contact me about that and he is agreed to help me, but some users just give bad reviews it is frustrating.

Parents
  • sdk 4.1.1 eclipse window

    Case for a widget:

    Pb with my "key/gesture listener" for the first view if my widget

    Initialized like this

    and here my "key gesture listener"

    var isF7 =  // fenix 7
                    Sys.getDeviceSettings().partNumber.equals("006-B3905-00")
                    || Sys.getDeviceSettings().partNumber.equals("006-B3906-00")
                    || Sys.getDeviceSettings().partNumber.equals("006-B3907-00")
                    ;

    class KeyListenerForMainPage extends Ui.BehaviorDelegate {

        function initialize() {
            BehaviorDelegate.initialize();
        }
        
        function onSelect() {
            var menu = new MenuView();
            Ui.pushView(menu, menu.keyListener, Ui.SLIDE_LEFT);
            return true;
        }
        
        function onKey(keyEvent) {
            if (Sys.getDeviceSettings().isTouchScreen  && !isF7) {
                return onSelect();
            }
            return false;
        }
    }

    -> onBack() is not overriden so it is supposed to work as default, and this is what the simulator show.

    Works perfectly in real and in simulator for all forunners, all fenix 5, and 6 and vivoactive 4

    Works too with fenix 7 and epix 2 in simulator, but NOT in real devices

    The issue:

    In real device F7 or epix2, the 'lap' button has not effect and swipes towards left or right have not effect too, so no possibility to exit the widget.

Comment
  • sdk 4.1.1 eclipse window

    Case for a widget:

    Pb with my "key/gesture listener" for the first view if my widget

    Initialized like this

    and here my "key gesture listener"

    var isF7 =  // fenix 7
                    Sys.getDeviceSettings().partNumber.equals("006-B3905-00")
                    || Sys.getDeviceSettings().partNumber.equals("006-B3906-00")
                    || Sys.getDeviceSettings().partNumber.equals("006-B3907-00")
                    ;

    class KeyListenerForMainPage extends Ui.BehaviorDelegate {

        function initialize() {
            BehaviorDelegate.initialize();
        }
        
        function onSelect() {
            var menu = new MenuView();
            Ui.pushView(menu, menu.keyListener, Ui.SLIDE_LEFT);
            return true;
        }
        
        function onKey(keyEvent) {
            if (Sys.getDeviceSettings().isTouchScreen  && !isF7) {
                return onSelect();
            }
            return false;
        }
    }

    -> onBack() is not overriden so it is supposed to work as default, and this is what the simulator show.

    Works perfectly in real and in simulator for all forunners, all fenix 5, and 6 and vivoactive 4

    Works too with fenix 7 and epix 2 in simulator, but NOT in real devices

    The issue:

    In real device F7 or epix2, the 'lap' button has not effect and swipes towards left or right have not effect too, so no possibility to exit the widget.

Children