homescreen showWindow event not reaching listeners

Description

When I trigger the "homescreen/showWindow" operation from a web app, it never seems to reach the services listening to it.

For example, WAM is listening for this event. The handler is declared here: https://github.com/webosose/wam/blob/159cef4225664376c17a21459a1b1a01a7924a76/src/agl/WebRuntimeAGL.cpp#L320

When the Qt launcher opens a running webapp, I can see this message in the system logs:

Jul 16 10:35:51 intel-corei7-64 afbd-webapps-html5-launcher@1.0[956]: ## (DEBUG)[WebAppLauncherRuntime::init_hs()::<lambda(json_object*)>] Activesurface WebApp-31029

We are implementing an HTML5 launcher in . This is the code that calls the homescreen API: https://github.com/jaragunde/agl-html5-launcher/commit/146044a5d19ef0b6f0c5cbcfce7470bf5292167b

The message returns with success status. The AFM monitor reports the message was sent and the success reply, too. But WAM never receives the event, the aforementioned log message is never printed and the window is not shown.

Environment

None

blocks

Activity

Walt Miner 
August 8, 2019 at 2:28 PM

Close for HH 8.0.0 release

Jacobo Aragunde Pérez 
August 1, 2019 at 10:27 PM

A side note, I opened the monitor web UI and set verbosity in debug mode, but I cannot see the messages exchanged. I can see the debug messages in the system logs, though, could there be an issue with the monitor website?

Please ignore this comment, I was not setting up the monitor properly.

Jacobo Aragunde Pérez 
August 1, 2019 at 10:26 PM

I tried removing the "@version" part and it didn't work directly. The following error started showing up:

Aug 01 22:14:52 intel-corei7-64 afbd-homescreen-service@0.1[451]: [2451914.895] [homescreen-service ERROR] [hs-client.cpp, showWindow(), Line:256] >>> please input correct parameter.

I double checked the parameters and noticed that, for that call to work, it should pass the "area" value inside a "parameter" key, like:

I think I fixed that now on the webapp side. Thanks for your help.

jose bollo 
August 1, 2019 at 3:02 PM

after looking in the detail with your help a relevant difference is the "application_id" used. That application id should probably not have the @version suffix to be understood by the homescreen.

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Contract ID

Components

Affects versions

Priority

Created July 16, 2019 at 10:49 AM
Updated September 19, 2019 at 12:06 PM
Resolved August 2, 2019 at 6:11 AM