Options
Explorer included wallets
Allows to set included wallets that are fetched from WalletGuide. You can define a list of wallets ids you’d like to prioritize (order is respected). You can get these ids from the explorer link mentioned before by clicking on a copy icon of your desired wallet card.
Explorer excluded wallets
Allows to set excluded wallets that are fetched from WalletGuide. You can get these ids from the explorer link mentioned before by clicking on a copy icon of your desired wallet card.
Supported Chains
Allows to set supported chains for the application. Can use predefined chain constants from ChainConstants.Chains
or custom Chain
objects.
Enable Installed Wallet Detection
To enable AppKit to detect wallets installed on mobile devices, you need to make specific changes to the native side of the project.
- In Unity override Android Manifest.
- Add your
<queries>...</queries>
schemes outside of<application />
scope in the manifest file. - Refer to Android Specs for more information.
Example:
More wallet package names can be found in our sample AndroidManifest.xml.
- In Unity override Android Manifest.
- Add your
<queries>...</queries>
schemes outside of<application />
scope in the manifest file. - Refer to Android Specs for more information.
Example:
More wallet package names can be found in our sample AndroidManifest.xml.
Wallet detection may produce inaccurate results on iOS Simulator. It is recommended to test on a real device.
- Make an iOS build.
- In the generated Xcode project, find
Info.plist
file and open it with a external editor (i.e. not Xcode). - Locate or create
<key>LSApplicationQueriesSchemes</key>
section. - Add the desired wallet schemes as string entries within the
<array>
. These schemes represent the wallets you want to detect.
Example:
Fullscreen in WebGL
The default unityInstance.SetFullscreen(1)
method enables fullscreen for the canvas node by pushing
it to the top layer.
This causes the modal to be rendered behind the canvas, making it invisible to the user when fullscreen is enabled.
To fix this, AppKit creates a container around the canvas node and appends the modal UI to it. By requesting fullscreen on the container, the modal will always be rendered on top of the canvas.
Redirect from Wallet to App
After a connection or request approval, most wallets attempt to redirect back to the app. To ensure reliability, particularly on iOS, it is recommended to register a custom URL scheme and provide it to AppKit.