element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.37k stars 718 forks source link

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

Open marius851000 opened 2 years ago

marius851000 commented 2 years ago

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

bmarty commented 2 years ago

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 :/

thibaultamartin commented 2 years ago

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 🤞

bmarty commented 2 years ago

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
aWeinzierl commented 2 years ago

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