Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 1.8 KB

linking.md

File metadata and controls

61 lines (35 loc) · 1.8 KB

Deep Linking 🔗

Several URI schemes are available for deep linking from external sources They all are prefixed by ledgerlive://

  • portfolio 🠒 Portfolio page (default landing)

    ledgerlive:// or ledgerlive://portfolio

  • account?currency 🠒 Account Page

    ledgerlive://account will redirect to accounts page

    ledgerlive://account?currency=btc will open first bitcoin account found

    ?currency param can be name or ticker of the currency targeted

  • send?currency 🠒 Send Flow

    ledgerlive://send will redirect to send page

    ledgerlive://send?currency=ethereum will redirect to send page with ethereum accounts search prefilled

  • receive?currency 🠒 Receive Flow

    ledgerlive://receive will redirect to receive page

    ledgerlive://receive?currency=ethereum will redirect to receive page with ethereum accounts search prefilled

  • buy/:currency 🠒 Buy Crypto Flow

    ledgerlive://buy will redirect to buy page

    ledgerlive://buy/bitcoin will redirect to buy page with bitcoin accounts search prefilled

  • swap 🠒 Swap Crypto Flow

    ledgerlive://swap will redirect to swap page

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

Testing on ios in order to test your link run using xcrun

  xcrun simctl openurl booted ledgerlive://{{YOUR_URL}}

Testing through browser

run

yarn run 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 or use the network link provided by the command.