Is it possible to do window injection on desktop app like is doable in browser

Developing a desktop project that is able to open webviews with other dApps, the problem is that the “window.ethereum” does not exist in desktop apps. Is it possible to build the wallet using the MetaMask SDK and have the wallet pop up when the dApp is opened on the desktop?

Hello @user2382 !
Welcome to MetaMask community )

Yes, it is possible via MetaMask mobile app.
You can import MetaMask SDK into your Electron desktop or NodeJS application to enable your users to easily connect with their MetaMask Mobile wallet.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.