Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Wallet does not open in Telegram min app #2241

Open
1 task done
nishina-y opened this issue Nov 8, 2024 · 3 comments
Open
1 task done

[bug] Wallet does not open in Telegram min app #2241

nishina-y opened this issue Nov 8, 2024 · 3 comments

Comments

@nishina-y
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

RainbowKit Version

2.2.0

wagmi Version

2.12.29

Current Behavior

Wallet does not open in Telegram min app (WebView) in Telegram (iOS/Android).
You need to change from window.location.href to window.open, but window.open does not work correctly because you are using await just before.

https://github.com/rainbow-me/rainbowkit/blob/main/packages/rainbowkit/src/components/ConnectOptions/MobileOptions.tsx#L111

Expected Behavior

The opening of the wallet application.

Steps To Reproduce

  1. launch Telegram (iOS)
  2. launch Telegram mini app with rainbowkit
  3. open binance wallet, okx wallet, bitget wallet etc.
  4. wallet does not open

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

@skushagra9
Copy link

I am also facing the same issue

@DanielSinclair
Copy link
Collaborator

@nishina-y @skushagra9 Do you have a Mini App example or deployment we can test against? Will look into this!

@github-actions github-actions bot deleted a comment from longyincug Dec 11, 2024
@longyincug
Copy link

longyincug commented Dec 11, 2024

You can create a TG Bot by BotFather, and set the page URL(https://www.rainbowkit.com/) of Mini App, then open the Mini App, connect wallet. You can reproduce the problem we encountered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants