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.
Parents Comment Children
No Data