metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

Deeplinks to other apps not wokring in browser

Open thirdprize opened this issue 2 years ago • 1 comments

Describe the bug Deeplinks to other apps on mobile phones do not work in the metamask mobile (MMM) apps browser. I have an app that opens a dapp in the MMM browser which in turn deeplinks back to the original app. This is a duplicate of https://github.com/MetaMask/metamask-mobile/issues/4004 as it is still not working. Well, it was fixed for a bit but then it stopped working again. An example deeplink would be

web3mobiledemoapp://address/0xce41b49d28800de3ba9925f68d82129dfc4b870b where web3mobiledemoapp is registered to an app on my phone.

Screenshots not applicable

To Reproduce

  1. Open the browser tab in MMM and go to "https://www.redfivesoftware.com/Web3Metamask.htm?return=web3mobiledemoapp".
  2. Wait until the screen has refreshed with the users eth address.
  3. Tap the URL "return to app" and it should try opening an app whose datascheme is "web3mobiledemoapp". It doesn't, it just sits there.

Expected behavior It should open an existing app on the phone but it does not.

Smartphone (please complete the following information):

  • Device: Fairphone 3
  • OS: Android 11
  • App Version 5.2.0

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

  • How critical is the impact of this bug on a user?
  • Add stats if available on % of customers impacted
  • Is this visible to all users?
  • Is this tech debt?

thirdprize avatar Jun 30 '22 16:06 thirdprize

Same problem for me in MetaMask v5.4.0 with Android 12.

Cherden avatar Aug 01 '22 13:08 Cherden

Same problem for me in MetaMask v5.3.0 with Android 12.

jiangwei1995 avatar Aug 23 '22 02:08 jiangwei1995

Same problem for me in MetaMask v5.5.1(949) with iOS 15.4.1.

jiangwei1995 avatar Aug 23 '22 02:08 jiangwei1995

While it is still a bug, what are you all using it for? You might want to check out the Metamask sdk. It is the way to go for connecting, signing and sending via the app.

thirdprize avatar Aug 23 '22 15:08 thirdprize

Thank you very much! How to use metamask SDK? Can you send me a document?

jiangwei1995 avatar Aug 24 '22 01:08 jiangwei1995

Use WalletConnect?

jiangwei1995 avatar Aug 24 '22 01:08 jiangwei1995

@thirdprize @jiangwei1995 using a url scheme on the in-app browser doesn't work. The in-app browser is fundamentally a web view.

You have two options for now:

  • one is to have the user open the dapp/web application on a mobile browser and connect to MM mobile with WalletConnect
  • the second is to keep using the in-app browser but use deep linking services like Firebase, Branch.io, etc that allows you to create universal links to your app like our for example (https://metamask.app.link/something).

We are working on expanding these options but for now, those are the one ready available.

andreahaku avatar Aug 24 '22 09:08 andreahaku

@andreahaku I see. Thank you for your proposal

jiangwei1995 avatar Aug 24 '22 09:08 jiangwei1995

@andreahaku Have you got a link for signing up for the SDK beta? Just in case anyone else wants to sign up for it.

thirdprize avatar Aug 24 '22 10:08 thirdprize

@andreahaku Have you got a link for signing up for the SDK beta? Just in case anyone else wants to sign up for it.

@thirdprize the SDK is in private beta. It'll be public in the coming weeks. When it'll be public I'll surely share all the info about it :)

andreahaku avatar Aug 24 '22 10:08 andreahaku

@andreahaku I use firebase dynamic links on Google Pixel 4 Android 12, Metamask v5.4.0(931) It works normally in Google Chrome and can pull up my app Unable to pull up my app in metamask browser

https://user-images.githubusercontent.com/9276313/186565663-b5386ccf-fde6-41d2-837e-f2c6621cabfc.mov

jiangwei1995 avatar Aug 25 '22 03:08 jiangwei1995

This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.

github-actions[bot] avatar Jun 16 '23 23:06 github-actions[bot]