AppKit Link Mode is a low latency mechanism for transporting One-Click Auth requests and session requests over universal links, reducing the need for a WebSocket connection with the Relay. This significantly enhances the user experience when connecting native dApps to native wallets by reducing the latency associated with networking connections, especially when the user has an unstable internet connection.
For Link Mode to fully work, you also need to enable the One-Click Auth (SIWE) feature.
This feature is compatible only with EVM blockchains, so if you decide to include non-EVM blockchains Link Mode mechanism is going to be disabled internally.
How to enable it:#
To support link mode, configure your Metadata with a valid universal link and set the linkMode property to true:
How does it look without Link Mode?#
Platform specifics:#
To enable universal links for your app, refer to React Native Documentation.
After following the steps provided in the official guide:
- Ensure that you handle incoming Universal Links in the your
AppDelegate.mmfile.
- Open your project in XCode and go to
Settings/Signing & Capabilities/Associated Domainsto add the new domain. After this,your_project.entitlementshould look like this:
- Update/Create your domain's
.well-known/apple-app-site-associationfile accordingly.
For more information about supporting universal links, visit the Supporting associated domains page
For a debugging guide, visit the Debugging Universal Links page.
Android Studio provides a tool to configure Universal Links easily, you can read the guide in Android Documentation
After following the steps provided in the guide:
- Ensure that your Universal Link is properly configured in your app's
AndroidManifest.xmlfile with theautoVerifyset totrue. It should look similar to this:
- Update/Create your domains's
.well-known/assetlinks.jsonfile accordingly
For more information on how to configure universal links for your app, refer to Android Documentation.
For testing the configured universal link to app content check this documentation page.
Once everything is properly configured, and the user connects with a Link Mode-supporting wallet using One-Click Auth, your dapp will send requests through it.