The DApp contextual environment supported by the imToken application.
imToken's built-in WebView uses the platform's native kernel and is fully compatible with MetaMask, while also providing public APIs to help you improve your Web app. You can seamlessly migrate your DApp to the imToken WebView environment at any time, or refine your site to make it a better experience in the imToken app.
- Fully compatible with MetaMask and can directly migrate Ethereum DApps for use within the imToken application.
- You can develop EOS DApps based on Scatter. Support
scatterjs-coreversions less than or equal to
If your application supports multiple languages by default, you can confirm the current language environment using: (choose one of them)
- 1.Request header - We set the
accept-languageHTTP request header of the URL request, the value depends on imToken App language, such as:
- 2.URL Query - The page in the WebView will automatically carry the language parameters of the query:
You can add a query
___debugto your DApp URL, it will inject a console panel into your page，you can find a
vConsolebutton in the bottom right corner of the page, it will open a panel after click (Similar to chrome's debug panel).
If your Web application (or DApp) is running on a mobile device, it can be called and redirected to the imToken application via DeepLink, and can be used within the imToken application as well. Please refer to the DeepLink documentation for details.
If your Web application (Including DApp) is running on the desktop or in an external browser and it is not convenient to use DeepLink to call the imToken application, Wallet Connect can help you connect to the imToken application. To learn how to connect and communicate using Wallet Connect, please visit our Wallet Connect section.
@consenlabs-fe/webviewis an open-source SDK to help you get a better experience within the imToken application, and you can use this SDK for deep customization and development of imToken WebView. Read the SDK API documentation to learn more.