Connect to App or Mini Wallet

Troubleshooting#

Using SDK access to jump apps on iOS may fail#

On iOS, the system restricts the asynchronous operation before calling the deeplink, and the jump must be triggered directly by the user's click behaviour, otherwise the corresponding deeplink may not be opened. Otherwise, the corresponding deeplink may not be opened. if you must use SDK instead of UI, in case you can't avoid the asynchronous operation, you can try to open a popup window first. The user clicks the button in the popup to trigger the request method again.

Sending connection and signature messages at the same time, without opening the signature panel#

In non-TON chain, connection and signature are currently 2 messages, if the signature message occurs after opening the app, the web page may fail to send. Best practice is to connect to the wallet first. Connect successfully and then click the button to generate the signature request. Each time you need to wake up the app, it should be triggered by a separate user action.

After connecting the UI components, clicking to open OKX Mini Wallet in Telegram does not respond.#

Opening another bot requires calling a specific method of the Telegram bot, which is mounted on window.Telegram.WebApp. You can refer to the documentation,at the top of the page. Add <script src=‘https://telegram.org/js/telegram-web-app.js’></script>.

If you can't reference this cdn js directly but use npm instead, you can call it in your code:

import WebApp from ‘@twa-dev/sdk’;

WebApp.ready();