Ticket Created
over 4 years ago

WERETECH-11029

Transferred

requestApplicationWake not working properly on fenix5 device with widget

I prepared widget app with background service woken up on time period event. In background delegate service onTemporalEvent () is implemented as follows:

        function onTemporalEvent() {
            Background.requestApplicationWake("Launch ?");
            Background.exit(null);
        }
Once the event occurs, a Launch dialog box should be presented with Launch and Dismiss options. 
When Launch option is selected the device should present a widget view.
So everything works fine on Simulator - after killing app and waiting for event, dialog box is presented and widget is started.
But on my fenix5 device is not working properly: dialog box is presented but nothing happens after choosing Launch option.
The widget view itself is working fine while it's very simple:
    function onUpdate(dc) {
        dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_BLACK);
        dc.clear();
        dc.drawText(dc.getWidth ()/2, dc.getHeight ()/2, Graphics.FONT_SYSTEM_MEDIUM, "Test App", Graphics.TEXT_JUSTIFY_CENTER);
    }
I don't know if it's only related with fenix5.
  • Seconding this issue:

    My widget sets a registerForTemporalEvent() with a Moment.

    On the device and in the sim this correctly launches the selection dialog, but then:

    • Selecting OK in the sim correctly launches the app.
    • Selecting Launch on the device just closes the dialog.

    Environment:

    • SDK: 4.1.5 on Mac (VS Code IDE 1.0.6)
    • Test device: Fenix 5S @ 25.0 (3ca0dea)

    Please let us know where this issue is heading. Thank you!

  • An internal ticket has been created to look into this issue.