LedgerHQ / ledger-live-mobile

⛔️ DEPRECATED - Ledger Live (Mobile)
https://ledger.com/live
Apache License 2.0
381 stars 116 forks source link

LIVE-2083 LIVE-2084 - Reenable navigation to Lido platform app on iOS #2457

Closed ofreyssinet-ledger closed 2 years ago

ofreyssinet-ledger commented 2 years ago

On the Portfolio (in the Carousel) and on the account screen for Ethereum accounts, we have CTAs that lead to the Lido discover apps.

The logic for these CTAs was using deeplinking (opening this URI: ledgerlive://discover/lido) and the deeplinks handling and redirection logic for discover apps is in part handled by the PlatformCatalog screen: react-navigation navigates to the PlatformCatalog screen with the correct params, then that screen has a useEffect to check the validity of the params (it checks that the app manifest exists and is not filtered) and then navigate to the PlatformApp screen.

The issue with that is that on iOS we have removed the PlatformCatalog completely from the navigation logic so this deeplinking logic cannot work. That is why these CTAs have been disabled on iOS.

The simple solution then to reenable these is to implement a direct navigation instead of a deeplink logic.

Wallet > "Recommended" section > Lido card

https://user-images.githubusercontent.com/91890529/165715963-7d046a67-c447-4721-9744-1a7149ed8e04.mp4

Ethereum account page > "Stake" CTA

https://user-images.githubusercontent.com/91890529/165715977-dd179e78-c6a3-43ff-99dc-5b248aaecffe.mp4

Type

Reenabling existing feature

Context

LIVE-2083

Parts of the app affected / Test plan

github-actions[bot] commented 2 years ago

Thanks for your contribution. To be able to merge in develop branch, you need to: