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