-
Notifications
You must be signed in to change notification settings - Fork 626
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
Fix app store deep links in dapp browser #6267
base: develop
Are you sure you want to change the base?
Conversation
@@ -6,6 +6,11 @@ export const HTTP = 'http://'; | |||
export const HTTPS = 'https://'; | |||
export const RAINBOW_HOME = 'RAINBOW_HOME'; | |||
|
|||
export const IOS_APP_STORE_URL_PREFIXES = ['itms-apps://', 'itms-appss://', 'https://itunes.apple.com', 'https://apps.apple.com']; | |||
export const ANDROID_APP_STORE_URL_PREFIXES = ['market://', 'https://play.google.com/store', 'https://play.google.com/store/apps']; |
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.
redundant prefix only need https://play.google.com/store
export function isMissingValidProtocol(url: string): boolean { | ||
return !url.startsWith(HTTP) && !url.startsWith(HTTPS); | ||
} | ||
|
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.
Can remove this version and use isMissingValidProtocolWorklet
everywhere. Don't need to duplicate it as the 'worklet';
directive just gets ignored if a worklet is called from the JS thread.
Could do the same for isValidURL
, normalizeURL
, and generateUniqueId
while you're in here.
Fixes APP-1833
What changed (plus any additional context for devs)
This does not handle
Screen recordings / screenshots
RPReplay_Final1731628405.mov
What to test
on iOS, must test on physical device.