Description
We are MetaMask SDK developers and we would like to help you add support for the MetaMask SDK to the MetaMask connector.
This would enable to add support to MetaMask Mobile app along with MetaMask Extension. The MetaMask SDK also solves some hijacking issues with the window.ethereum
provider.
The MetaMask Mobile connection would be enabled on desktop browsers (via QRCode scanning) and mobile browsers (via Universal Links).
The update should add the '@metamask/sdk' dependency, the MetaMask SDK npm module, initialise the MetaMask SDK and use the MetaMask SDK provider as it's able to handle connection with both MetaMask Extension and MetaMask Mobile app.
The file that should be involved in the integration with the MetaMask SDK is:
https://github.com/Uniswap/web3-react/blob/main/packages/metamask/src/index.ts
The repo to refer to is: https://github.com/MetaMask/metamask-sdk
A few examples can be found here.
Documentation is here.