-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: add change browser modal #402
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Tested on an iphone. Works great 👍
src/utils/pwa.ts
Outdated
export const isIOS = () => /iPhone|iPad|iPod/i.test(navigator.userAgent) | ||
|
||
export const isChrome = () => | ||
browser?.name ? /chrome|crios|edge-chromium/i.test(browser?.name) : false |
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.
Should we cover brave
here?
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.
There's a regression.
- On dev tools, switch device to iPhone
- Open preview
- No
PWA
modal or Change browser modal
3948c31
to
d541c91
Compare
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.
LGTM
Description
iOS Chromium browsers don't have
Add to Home Screen
functionality. For the iOS users, we should redirect them to Safari instead. Added change browser modal and refactored conditions for the other modals to make sure that mobile Chroimum users should redirected to Safari first.Type of change
Fixes/Resolves (Optional)
Examples/Screenshots (Optional)
Checklist:
Additional Information (Optional)
Closes https://github.com/WalletConnect/web3inbox-planning/issues/48