element-android icon indicating copy to clipboard operation
element-android copied to clipboard

FOSDEM 2022 schedule widget ask for connection on Android, but not on Desktop

Open marius851000 opened this issue 4 years ago • 4 comments

Steps to reproduce

  1. Join #test:fosdem.org
  2. Open the schedule widget on the Android client
  3. It ask for authentification -- and that's not the case on Desktop

Outcome

What did you expect?

It display the schedule, as on the desktop element application

image

What happened instead?

It ask to "sign in to your Matrix account on fosdem.org"

Screenshot_20220202-191354_Element

Your phone model

Samsung galaxy A5 2017 (A5YLTE17)

Operating system version

Android 11 (lineageOS with MicroG 18.1)

Application version and app store

Element 1.3.15 (from FDroid)

Homeserver

Synapse 1.51.0 (personnal homeserver)

Will you send logs?

Yes

marius851000 avatar Feb 02 '22 18:02 marius851000

After investigation, the widget Event content has

image

url -> https://fosdem-schedule-element-widget.hss.element.io/?theme=$theme&room=M.test`

but the URL should be

url -> https://fosdem-schedule-element-widget.hss.element.io/?theme=$theme&room=M.test&widgetId=$matrix_widget_id`

For this to work properly.

Hacking Element Android code with this value for the URL and it's still not working fine, I got a black screen as per opening directly the url https://fosdem-schedule-element-widget.hss.element.io/?theme=dark&room=M.test&widgetId=be36a59008cd909130504d809240d3fe187468399ff84db0e6923d5ab09a00ee&parentUrl=https://develop.element.io/ from a browser:

image

I have no more idea so far :/

bmarty avatar Feb 03 '22 01:02 bmarty

Heads-up that officially only Element Web is supported for FOSDEM. It looks like there might be some room to make it work on Android too which would be awesome, but most of the efforts and the commitment went to Element Web for https://chat.fosdem.org

Fingers crossed, no guarantee 🤞

thibaultamartin avatar Feb 03 '22 09:02 thibaultamartin

Note: The other widget of this room, "Livestream" has a correct url, and is working fine on Element Android 🎉

"url": "https://widgets-fosdem.ems.host/widgets/auditorium.html?widgetId=$matrix_widget_id&auditoriumId=$auditoriumId&theme=$theme"

Widget Event content Element Android rendering
image image

bmarty avatar Feb 03 '22 09:02 bmarty

The blank screen problem appears outside EA as well: https://github.com/matrix-org/fosdem-schedule-element-widget/issues/5

aWeinzierl avatar Feb 06 '22 22:02 aWeinzierl