Skip to content

In browser, twa.showPopup does not work. It throw error '[Telegram.WebApp] Method showPopup is not supported in version 6.0' #43

Description

@KyoungWan

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

  1. why does twa.openLink work in chrome environment but twa.showConfirm doesn't work?
  2. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions