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.

  • I have seen the swiping motion not exiting, but the onBack button is working on the Venu 2, F7 and Epix 2 from what I've tested.

    Edit: I overlooked the area where you were showing the delegate. So I apologize.

  • 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.

  • Simply saying that the simulator behavior doesn’t match the device is not very helpful to us. Until we know what the difference in behavior is, we are left guessing about the actual issue and cannot fix it.

    If you could provide a test case or at least describe the actual problem, that would be incredibly helpful to us.

  • You want to look at the stack trace to see where this is happening.  You don't have a friendly one, just pc values.  Here's how to make sense of that:
    https://forums.garmin.com/developer/connect-iq/f/discussion/231129/so-you-have-a-ciq_log-file-but-all-you-see-is-pc-without-a-friendly-stack-trace---what-to-do

  • So yes the issue is fixed today, but can t trust the simulator for touch screen devices. In jun 2018 my app received many bad reviewes because users can t exit, since it was working in simulator I xas enable to check that, 4 years later, the simulator have the same problem!

    I have renounced to do app for touch screen devices, but since new devices have touchscreen (Fenix 7...), it is a real problem now.