-
Notifications
You must be signed in to change notification settings - Fork 332
LLM:DeepLinking
It is possible to launch Ledger Live Mobile and open a specific section or modal by using a deep link.
All Ledger Live deep links start with the ledgerlive://
URI.
Every route is preceded by the protocol ledgerlive://
.
Some routes allow you to use query params to pass additional context.
This is especially true for discover related deeplinks.
Keep in mind that everything after an anchor tag is client side (in this case Ledger Live) and will then not be forwarded to the liveApp (even query params). Have a look at this resource for more context.
Query String Parameters: None
Examples:
-
ledgerlive://
orledgerlive://portfolio
Examples:
-
ledgerlive://accounts
will redirect to accounts page -
ledgerlive://accounts?currency=btc
will open the first bitcoin account found -
ledgerlive://accounts?currency={{currency}}&address={{my_address}}
should redirect to the corresponding account page if address matching an account is found, if not it falls back to the {{currency}} account page
Query String Parameters:
- currency (optional): the ticker or name of the currency
Examples:
-
ledgerlive://add-account
Opens Add Account Modal -
ledgerlive://add-account?currency=bitcoin
Opens Add Account Modal with Bitcoin pre-filled
Examples:
-
ledgerlive://nftgallery
will redirect to NFT Gallery Tab page
Examples:
-
ledgerlive://send
will redirect to send page -
ledgerlive://send?currency=ethereum
will redirect to send page with ethereum accounts search pre-filled
Examples:
-
ledgerlive://receive
will redirect to receive page -
ledgerlive://receive?currency=ethereum
will redirect to receive page with ethereum accounts search pre-filled
ledgerlive://buy
will redirect to buy page
ledgerlive://buy/bitcoin
will redirect to buy page with bitcoin accounts search prefilled
ledgerlive://sell
will redirect to sell page
ledgerlive://sell/bitcoin
will redirect to sell page with bitcoin accounts search prefilled
Query String Parameters: None
- installApp: the search query to be pre-filled when MyLedger opens
Examples:
-
ledgerlive://myledger
will redirect to MyLedger page -
ledgerlive://myledger?installApp=bitcoin
will redirect to MyLedger page with a pre-filled search for bitcoin
ledgerlive://swap
will redirect to swap page
Url Parameter:
- liveAppId (optional): the liveApp id
Query String Parameters:
- &{params}: the url query params that will be transmitted to the liveApp (please refer to each apps documentation in order to use them).
Examples:
-
ledgerlive://discover
will redirect to discover page -
ledgerlive://discover/paraswap
will redirect to the discover catalog page of Paraswap -
ledgerlive://discover/paraswap?accountId=1
will redirect to the discover catalog page of Paraswap with a pre-selected first account
Query String Parameters:
- uri : uri to be passed
Example:
ledgerlive://wc?uri=${encodeURIComponent(url)}
ledgerlive://settings/
ledgerlive://settings/general
ledgerlive://settings/accounts
ledgerlive://settings/about
ledgerlive://settings/help
ledgerlive://settings/developer
ledgerlive://settings/notifications
ledgerlive://settings/experimental
ledgerlive://sync-onboarding
Query String Parameters:
- device : type of device
Example:
ledgerlive://post-onboarding?device=stax
Landing Pages
ledgerlive://landing-page
Example: ledgerlive://landing-page?useCase=LP_Generic
ledgerlive://ledgersync
ledgerlive://hw-purchase-success
ledgerlive://custom-image
ledgerlive://scan-accounts
Testing on android in order to test in debug your link run using adb
adb shell am start -W -a android.intent.action.VIEW -d "ledgerlive://{{YOUR_URL}}" com.ledger.live.debug
Beware of escaping the query parameters starting with "&", otherwise you will lose them :)
xcrun simctl openurl booted ledgerlive://{{YOUR_URL}}
run
pnpm mobile test-deep-links
Then go to the provided link in order to see a test web page. For this either
- redirect the :8000 port on your chrome remote device settings
- use
adb reverse tcp:8000 tcp:8000
- use the network link provided by the command.
- Ledger Live Desktop
- Ledger Live Mobile
-
Ledger Live Common
- Introduction
- Currency Models
- Currency Bridge
- Account
- Account Bridge
- apps
- appsCheckAllAppVersions
- ledger-live bot
- Canonical Ways to Investigate Bugs
- Coin Integration Introduction
- Countervalues
- Packages Duplicates
- Derivation
- Developing with CLI
- Developing
- Gist Firmware Update
- Gist Transaction
- Hardware Wallet Logic
- Socket
- Assorted tips
- Integration Tests
- Process
- Monorepository Migration Guide
- Issues, Workaround and Tricks
- Common CI Troubleshooting
- Create staging builds using the CI
- Deprecated