icon-sdk-js icon indicating copy to clipboard operation
icon-sdk-js copied to clipboard

If the extension is not installed in the chrome issue?

Open jagdishabhiandroid opened this issue 5 years ago • 7 comments

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/

jagdishabhiandroid avatar Nov 22 '19 07:11 jagdishabhiandroid

How can I detect if the ICONex extension is installed? I need this feature to redirect users to the ICONex extension installation.

octocat512 avatar Feb 18 '21 15:02 octocat512

I'd like ICONex to support this feature like Metamask https://docs.metamask.io/guide/getting-started.html#basic-considerations

octocat512 avatar Feb 18 '21 15:02 octocat512

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

ICONationTeam avatar Feb 18 '21 15:02 ICONationTeam

It is just a workaround. I think It is not good for developer experience.

octocat512 avatar Feb 18 '21 16:02 octocat512

Agreed

ICONationTeam avatar Feb 18 '21 16:02 ICONationTeam

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.

octocat512 avatar Feb 18 '21 17:02 octocat512

  • I'm using Hana wallet now
  • I already installed Hana but did not log in
  • After 2 seconds, It returns the extension not installed.

luanvuonggia avatar Aug 26 '22 06:08 luanvuonggia