HTML5 app fails to run from AGL Homescreen

Description

Launching an HTML5/JS app e.g. low-can-demo (https://github.com/iotbzh/low-can-demo) displays on the AGL Homescreen, but fails to run JS code that updates the information on the screen.

Environment

AGL 4.0

Activity

Jose Bollo 
August 12, 2017 at 6:08 AM

nice!

I updated recent upgrade of the binder for this issue so it is now in hands of reviewers (See 10605 & 10609 above)

About the change of URL, see https://lf-automotivelinux.atlassian.net/browse/SPEC-808#icft=SPEC-808

Hitendra Nishar 
August 11, 2017 at 6:53 PM

It works!!!! The only thing I needed to do extra is fix the URL in afm-appli-low-can-demo@0.9.service (remove htdocs from http://localhost:@p/htdocs/index.html?token=@t

Romain Forlot 
August 11, 2017 at 3:46 PM

fix it for Dab (commit: 2e4df370fed59a25d0bc157ccfb4642fb26d223), in af-binder.

With latest version of low-can-service (commit: 684326a8875ce96af53da58fa4c26afa6a7b781f) and low-can-demo, app is running fine on board (at least Renesas m3)

could you confirm that then this ticket will be resolved slightly smiling face

Jose Bollo 
August 11, 2017 at 3:12 PM

The issue is a consequence of the migration to the new version of libmicrohttpd that now integrates upgrading. The effect was that the header "Connection: Upgrade" was sent 2 times. This made Webkit closing the connection. Other navigator had not the problem, that explain why it was not detected before.

Romain Forlot 
August 11, 2017 at 8:41 AM

It seems more like the websocket connection that has an issue. Replacing "ws://" by "http://" is better but then apps is stuck at "connecting" step.

Fixed

Details

Assignee

Reporter

Fix versions

Labels

Affects versions

Priority

Created August 10, 2017 at 2:26 PM
Updated September 18, 2017 at 3:10 PM
Resolved September 6, 2017 at 8:24 AM

Flag notifications