ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
326 stars 92 forks source link

[UI-REACT]: Can't connect on Desktop #224

Open mzspcgg opened 3 months ago

mzspcgg commented 3 months ago

Describe the bug

When I try to connect using on my mobile phone it works very good with all wallets - Tonkeeper, MyTonWallet, Wallet In Telegram etc.

However, when I try to connect on desktop, it doesn't work with any wallet. I have TonKeeper Chrome extension installed, but it still redirects me to this page:

image

Expected behavior

Ability to connect to the TON wallet on desktop using a Chrome extension.

Current behavior

I have TonKeeper Chrome extension installed, but it still redirects me to this page and can't connect:

image

Steps to Reproduce

  1. Use from "@tonconnect/ui-react" library.
  2. Try to connect with any wallet on your desktop.

Environment

└─┬ @tonconnect/ui-react@2.0.6 └─┬ @tonconnect/ui@2.0.6 └─┬ @tonconnect/sdk@3.0.3 ├── @tonconnect/isomorphic-eventsource@0.0.2 ├── @tonconnect/isomorphic-fetch@0.0.3 └── @tonconnect/protocol@2.2.6

Additional context

No response

KernelPanic0 commented 3 months ago

Can you check your console when connecting? I recently started getting a strange Error: Decryption error: message. May be the same problem

mzspcgg commented 3 months ago

Can you check your console when connecting? I recently started getting a strange Error: Decryption error: message. May be the same problem

Don't see any error in the console.

However, just realized that it works properly when I run app on desktop, but it doesn't work in two cases:

  1. When I try to connect using Chrome Responsive Mode (i.e. as iPhone 12).
  2. When I try to connect when my app is open as Telegram Mini App on Telegram Desktop (macOS).
ryanmstokes commented 3 months ago

same issue, my telegram app works well with chrome tensions or in the telegram mobile app but:

  1. On telegram desktop app my telegram app wont load at all, i get a blank screen.
  2. When I try to connect to tonkeeper mac app from telegram web app when completing a transaction and i return to the app the "How to sign in to services with Tonkeeper" view does not disappear. the console shows an error "[TON_CONNECT_SDK] Response id 2 doesn't match any request's id"