[Ethereum] How to redirect from browser to Metamask or similar app like trustwallet on android

dappsethereum-wallet-dappmetamaskweb3-providersweb3js

I have a website that detects metamask and connects with it on pc, but on the android mobile app browser when I open my website it doesn't show some functions as it needs to be connected with BSC, So is there any option like when user open website and visit that particular page so app suggestion should pop-up like if we open any downloaded image from chrome shows app suggestion (in which app you would like to open – so similar in this case but this time website should directly open in metamask or trust wallet browser.

Best Answer

If your app is on React, you can use react-open-app to enable deep links. If not, you can still borrow its implementation to do it yourself as it's MIT licensed.

Also, Metamask Deeplinks is a good tool to get your deeplinks.

Related Topic