SDK
SDK copied to clipboard
In browser, twa.showPopup does not work. It throw error '[Telegram.WebApp] Method showPopup is not supported in version 6.0'
Problem situation
- twa.showConfirm does not work in chrome environment.
Details
-
This does not happen when testing in a TMA environment using ngrok, but it does happen when testing in chrome.
-
Probably because there is no initData in chrome, I am using the default version of 6.0, which is listed on https://telegram.org/js/telegram-web-app.js, and various twa functions are not available in that version, so the error occurs.
-
However, twa.openLink works fine in chrome. twa.showConfirm gives the following error. [Telegram.WebApp] Method showPopup is not supported in version 6.0
Question
- why does twa.openLink work in chrome environment but twa.showConfirm doesn't work?
- If I want to make twa's methods work in chrome environment, is there anything else I need to do besides installing and using the ‘@twa-dev/sdk’ library?
What type of Telegram client do you use?