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

add universal link flag #2352

Closed
wants to merge 13 commits into from
Closed

add universal link flag #2352

wants to merge 13 commits into from

Conversation

glitch-txs
Copy link
Contributor

@glitch-txs glitch-txs commented Jun 3, 2024

TODO

  • Filter wallets if they don't support Universal Link
  • Fix iOS issue

How to test the preview in Telegram:

  1. Look for the bot called @appkit_labs_bot in Telegram
  2. Send any message or press start.
  3. Labs will be open, choose the "wagmi default" option
  4. Press the connect button, it should redirect to the wallet (any wallet) and be able to connect

Changes

  • feat: Add enableUniversalLinks flag to use Universal Linking on mobile, this will improve Telegram Mini Apps support

Blocked by https://github.com/WalletConnect/cloud-app/pull/1195

Associated Issues

closes #...

Copy link

vercel bot commented Jun 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web3modal-gallery ✅ Ready (Inspect) Visit Preview Jul 17, 2024 1:58pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Jul 17, 2024 1:58pm

enesozturk
enesozturk previously approved these changes Jun 3, 2024
@enesozturk enesozturk dismissed their stale review June 4, 2024 08:12

There might be changes to complete this feature

@@ -103,6 +103,7 @@ export interface WcWallet {
image_url?: string
order?: number
mobile_link?: string | null
link_mode?: string | null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might bring confusion as we are developing another feature called link-mode 👀

Copy link
Contributor Author

@glitch-txs glitch-txs Jun 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +23 to +25
useEffect(() => {
window.Telegram?.WebApp.ready()
}, [])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this reqquired? what happens if it fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used by Telegram to initialize the website inside a Mini App. Outside telegram it doesn't have any effect. We can remove this from labs if needed, it's just here for testing purposes.

@tomiir
Copy link
Collaborator

tomiir commented Jul 15, 2024

@glitch-txs should we move to draft until the issue with iOS is resolved ?

@glitch-txs glitch-txs marked this pull request as draft July 17, 2024 13:49
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

Successfully merging this pull request may close these issues.

5 participants