[SOLVED] Metamask Detection in Android

How can we detect whether metamask is installed on the user’s android device or not. I have developed an android application where user authenticates via metamask wallet connect. I want to add a check where the user clicks on connect button and if the metamask wallet is not installed an alert shows saying “Please install metamask to proceed”
Moralis.isMetaMaskInstalled() works for browser but, I couldn’t find anything related to android metamask detection.

I don’t know how it is possible to do that, on mobile when you use walletconnect, multiple wallets can be used

But, my application is restricted to metamask only. and I want to detect whether the wallet is installed
@cryptokid

What sort of app are you developing? Is it a native app or just a regular site?

You can search up “detect if app is installed android”.

Otherwise just let the user decide which wallet they want to use.

This is a hybrid app based on ionic angular and capacitor @alex

Some quick searches have stated that it’s not possible to do this for security reasons on Android, but a workaround is to try and open the MetaMask app; if it doesn’t work then they don’t have it installed.

But for users who already have MetaMask, doing this would mean their app will be opened automatically/randomly.

This is for the web brother, won’t work in android and how would I be able to provide the metamask url? @alex

This is solved and this helped me
(https://capacitorjs.com/docs/apis/app-launcher)
This is for angular ionic with capacitor.

1 Like