You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Problem situation
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
The text was updated successfully, but these errors were encountered: