Mobile Dapp with H5 pages
Last updated
Was this helpful?
Last updated
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 .
There are two methods to check if dapps are running in MYKEY client.
Use navigator.userAgent to check. MYKEY webview will append MYKEY/[version] after the original userAgent.
2. For EOS, use scatter.getIdentity to check if the response data contain type:'MYKEY', the return data snippet