-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(card): cp-7.58.0 add card experimental deeplink #21599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
…card-experimental-switch-deeplink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The recommended implementation is to leverage universal links instead of traditional links. In other words, let's move this logic to handleUniversalLink instead. Since it seems like we wanted to avoid the interstitial, you can add the ENABLE_CARD_BUTTON action to the WHITELISTED_ACTIONS, which will skip the interstitial UI. Teams should access this feature by using a universal link base aka https://link.metamask.io
…card-experimental-switch-deeplink
…card-experimental-switch-deeplink
|


Description
This PR introduces a Deeplink handler that enables the Card button for all users who open the app through the specific Deeplink metamask://enable-card-button. The handler ensures the link is properly parsed and triggers the correct in-app action to activate the Card feature seamlessly.
Changelog
CHANGELOG entry: Added Deeplink handler for metamask://enable-card-button to enable the Card button for all users
Related issues
Fixes:
Manual testing steps
Run
npx uri-scheme open "metamask://enable-card-button" --iosor--androidScreenshots/Recordings
Before
After
ScreenRecording_10-24-2025.18-35-29_1.MP4
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds a deeplink (enable-card-button) that enables the Card button (behind flag) and shows a toast via a new CardNotification screen.
enable-card-buttonto deeplink/universal link handling; whitelist and parse inhandleUniversalLinkandDeeplinkManager.cardExperimentalSwitch, dispatchsetAlwaysShowCardButton(true), and navigate to notification.CardNotificationcomponent to display a toast and immediately close; addRoutes.CARD.NOTIFICATIONand register screen inAppnavigator.card.card_home.card_button_enabled_toaststring.CardNotificationbehavior.Written by Cursor Bugbot for commit 931ae8f. This will update automatically on new commits. Configure here.