Telegram-Mini-Apps / issues

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

Mini App not opening at all #54

Open vladkarataiyardex opened 5 days ago

vladkarataiyardex commented 5 days ago

Platform

Select platforms where this bug is reproducible:

Describe the bug

TG versions: 11.4.2 and others. Some users dont even see anything opening an app, no loaders, no app styles, nothing, just blank window, most of them are fron ar/fr/us. On our servers we cant even see any requests from them to our webpage, so i guess it doesnt even making any requests.

To Reproduce

Steps to reproduce the behavior: open bidpawbot app

Expected behavior

Expecting working mini app, not a blank screen and ton of requests from users in support.

Prooksius commented 4 days ago

Try to load telegram script https://telegram.org/js/telegram-web-app.js as usual, not from useEffect (as you described in your another issue). Maybe app is not always being initialized. This is the possible cause of "unsupported method" error

From the docs:

Initializing Mini Apps To connect your Mini App to the Telegram client, place the script telegram-web-app.js in the tag before any other scripts, using this code: