icon-sdk-js
icon-sdk-js copied to clipboard
If the extension is not installed in the chrome issue?
If the extension is not installed in the chrome then nothing happens when I dispatch event it is not working any error like install extension etc is there any way to achieve this with the current extension am using js code form the demo you provided : https://dapps.icon.support/iconex-webconnect/
How can I detect if the ICONex extension is installed? I need this feature to redirect users to the ICONex extension installation.
I'd like ICONex to support this feature like Metamask https://docs.metamask.io/guide/getting-started.html#basic-considerations
It can be done by sending a ICONEX_RELAY.REQUEST
event, if you don't have any answer after 2 seconds, you can consider the extension as not installed.
Exemple from the MyIconWallet source code here : https://github.com/ReliantNode/myiconwallet-react/blob/b2578f76a67396bfa1ae518f495bfb8ef9f5aa79/src/components/UnlockWithICONex.jsx
It is just a workaround. I think It is not good for developer experience.
Agreed
I'd like ICONex to implement EIP-1193(https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md). It will help that Web3 developers easily adopt ICONex.
- I'm using Hana wallet now
- I already installed Hana but did not log in
- After 2 seconds, It returns the extension not installed.