-
Notifications
You must be signed in to change notification settings - Fork 245
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 isAndroidApp to boot cache #4031
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
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.
I think this implementation will introduce edge cases and not sure why we decided to go with storage. Happy to quickly sync about it
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.
Looks ok, just make sure to verify, and one question if we actually hit the right people like this? (I don't know the exact goal of this experiment)
const { openModal } = useLazyModal(); | ||
const { showPrompt } = usePrompt(); | ||
const { showPlusSubscription, isPlus, logSubscriptionEvent } = | ||
usePlusSubscription(); | ||
const { value: appExperiment } = useConditionalFeature({ | ||
feature: featureOnboardingAndroid, | ||
shouldEvaluate: checkIsBrowser(UserAgent.Android) && !isAndroidApp(), | ||
shouldEvaluate: checkIsBrowser(UserAgent.Android) && !isAndroidApp, |
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.
But this would still catch app even right due to webapp redirect?
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.
@rebelchris We store the isAndroidApp in the boot:local storage key now, so its persisted across visits. I tested on the chrome browser on my android phone in debug mode, and it did persist the value after redirect. I will test it on the app after merging to make sure it exhibits the same behavior
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.
Don't have much to add!
Changes
Add check for android app in authcontext
Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
MI-709 #done
Preview domain
https://mi-709.preview.app.daily.dev