tronprotocol / tronwallet-adapter

MIT License
60 stars 29 forks source link

Cannot loginto TronLink app from mobile browser #63

Open lopo1 opened 4 months ago

lopo1 commented 4 months ago

const param = { callbackUrl: 'http://someurl.com', // no need callback dappIcon: '', dappName: 'test', protocol: 'TronLink', version: '1.0', chainId: '0x2b6653dc', action: 'open', actionId: Date.now() + '' }

const encodedParam = encodeURIComponent(JSON.stringify(param)); console.log("encodedParam = " + encodedParam); const deeplinkUrl = tronlinkoutside://transfer?param=${encodedParam} // const deeplinkUrl = 'tronlink://pull.activity?param={}'; window.location.href = deeplinkUrl; 6b9d71234175675d665d1852a8cd4d4

How do I need to modify

way2ex commented 4 months ago

If you want to transfer with TronLink App, you should set action: 'transfer'. Please refer to TronLink Developer Document.