How to use Deeplink connect to MathWallet mobile app

1 Open URL

You can use deeplink open MathWallet and then open an URL in the wallet in-app browser

Sample URL below, change the value param as you need:

mathwallet://mathwallet.org?action=link&value=http://dapp.mathwallet.xyz/polkadot/#/kusama

2 Open URL and get callback

Sample URL below, change the dappUrl param as you need and the blockchain param as well:

mathwallet://mathwallet.org?param={"action":"openUrl","protocol":"SimpleWallet","dappUrl":"https:\/\/gateway.eosdt.com\/","dappName":"MathWalletSDK-Demos","blockchain":"eosio","version":"1.0","callback":"mathwalletdemos:\/\/mathwalletsdk?action=openUrl","desc":"","dappIcon":""}

Currently this methods only supports blockchain: ethereum, tron, etc

callback is the URL after MathWallet completed the transaction will open, such as:
appABC://abc.com?action=openUrl&result=1

result:0 cancel, 1 success, 2 fail

If there is a transaction, it will add txID
appABC://abc.com?action=openUrl&transfer=1&txID=xxx

For more details about this SimpleWallet protocal, check:
https://github.com/mathwallet/SimpleWallet