MYKEY Docs
中文English
English
English
  • Introduction
  • Sign in with MYKEY
    • Verify signature at backend server
    • More detailed tech and process of MYKEY login
  • Integrate with MYKEY
    • Multiple ways to integration with MYKEY
    • Mobile Dapp with H5 pages
      • ETH
      • EOS
      • JS Extensions
    • Integration via MYKEY Android SDK
      • Preconditions
      • Initiate SDK
      • Authorize
      • Sign
      • Transfer
      • Call contracts
    • Integration via MYKEY iOS SDK
      • Preconditions
      • Initiate SDK
      • Authorize
      • Sign
      • Transfer
      • Call contracts
    • Web application with scanning qrcode
    • SimpleWallet Protocol Compatible
    • Deeplink Protocol
  • Dive into MYKEY
    • Dive into MYKEY account
    • Classes and methods
      • Android Classes
      • iOS Classes
    • Error Code
    • Identify MYKEY deposit transaction
      • ETH deposit
      • EOS deposit
    • MYKEY Whitepaper
  • KEY ID
    • KEYID ETH Contracts introduction
      • Account Module
      • Account Storage Module
      • Logic Management Module
      • Logic Module
    • Account recovery mechanism
    • KEYID contract upgrade process
    • KEYID contract upgrade records
      • ETH
        • KEY ID Ethereum Contracts Upgrade Pending Time Adjustment
        • KEY ID Ethereum logic contract module upgrade announcement
        • KEY ID Ethereum Contracts Upgrade Pending Time Adjustment
        • KEY ID Ethereum AccountLogic/DualsigsLogic Contracts Upgrade
        • KEY ID Ethereum DappLogic Contract Upgrade
  • Development Resources
    • Ethereum
    • EOS
  • Join Us
    • DApp submit
    • Developers Community
Powered by GitBook
On this page
  • How to identify the dapps that MYKEY opens

Was this helpful?

  1. Integrate with MYKEY

Mobile Dapp with H5 pages

PreviousMultiple ways to integration with MYKEYNextETH

Last updated 5 years ago

Was this helpful?

JSBridge is injected javascript code in MYKEY dapp browser enviroment by default, which support Scatter protocol, and web3js protocol.

Here we will show how to authorize with MYKEY. For more methods of JSBridge, please check the .

You can directly develop H5 pages compatible with the web3 protocol and Scatter protocol, then access them through the built-in browser of MYKEY.

For more information about the eth web3 protocol, please refer to:

For more information on the Scatter protocol, please refer to:

To verify the MYKEY signature, please refer to JSBridge support more functions, please refer to .

How to identify the dapps that MYKEY opens

There are two methods to check if dapps are running in MYKEY client.

  1. Use navigator.userAgent to check. MYKEY webview will append MYKEY/[version] after the original userAgent.

function isMYKEY(){
    return navigator.userAgent.indexOf("MYKEY") > -1;
}

2. For EOS, use scatter.getIdentity to check if the response data contain type:'MYKEY', the return data snippet

{
    accounts: [{authority: 'active', blockchain: 'eos', name: [ACCOUNT_NAME], type: 'MYKEY'}],
    publicKey: [OperationKey 3/Reserved key]
};

JS Extensions
https://web3js.readthedocs.io/en/v1.2.0/web3-eth.html
https://get-scatter.com/developers/settingupforwebapps
verify signature at backend server.
JSBridge extensions