Telegram-Mini-Apps / issues

Centralised storage of platform issues and enhancement proposals.
8 stars 1 forks source link

Events `web_app_request_theme` and `web_app_request_viewport` don't work as expected #7

Open heyqbnk opened 1 year ago

heyqbnk commented 1 year ago

Describe the bug Events web_app_request_theme and web_app_request_viewport do not return information about current theme and viewport. Unlike iOS and Android, desktop and web versions of Telegram do not emit such events as theme_changed and viewport_changed. There is just no reaction on these events.

To Reproduce Steps to reproduce the behavior:

  1. Open Web Apps Polygon bot (bot source code)
  2. Open console
  3. Use script which returns theme and viewport information:
    bridge.postEvent('web_app_request_theme');
    bridge.postEvent('web_app_request_viewport');
  4. See no received events in console.

Expected behavior The same behavior on all platforms - emit of events theme_changed and viewport_changed with correct parameters.

heyqbnk commented 1 year ago

Bug in web version of Telegram is now fixed. Events are now properly processed by native app.

heyqbnk commented 1 year ago

tdesktop and macos issues.