MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.11k stars 1.09k forks source link

Can not open another app use scheme url from Metamask Ios browser #3333

Open phuctri9898yahoo opened 2 years ago

phuctri9898yahoo commented 2 years ago

Describe the bug I can not open another app (I use Telegram app for example) by using Scheme Url from Metamask iOS browser I use this code to open Telegram app: html code: Open telegram or javascript code: location.href = "tg://"; This code worked on Safari iOS , Chrome iOS , event Metamask Browser on Android. But not worked on Metamask Browser on iOS

To Reproduce

  1. Open Metamask app on iOS device (iPhone), switch to Browser
  2. Open a Dapp in a new tab
  3. In Dapp, open another app by scheme url. Ex: Open Telegram by html tag: Open telegram
  4. Nothing happened

Expected behavior Open app Telegram when call redirect to Telegram scheme url in step 3.

Smartphone (please complete the following information):


to be added after bug submission by internal support / PM Severity

csalmeida commented 2 years ago

I have the same issue on iOS. Using an URL with for example, app:// would open the app on Safari, Firefox and Chrome but currently does not seem to act on it on the MetaMask Mobile browser.

This also happens on with deep links of associated domains. For example, the deep link app.com/subdirectory would prompt or open the app when the URL is visited on Safari but not on the MetaMask Mobile.

From what I understand the following usecase is covered:

A case that the browser does not address is:

Unless this is possible and I'm missing something? Your thoughts would be really appreciated.

csalmeida commented 2 years ago

This PR might be related, it added support for twitter://, however not sure at the moment what it would like to support any URI Scheme: https://github.com/MetaMask/metamask-mobile/pull/3664