Skip to content
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

Merged
merged 6 commits into from
Jan 6, 2025
Merged

feat: Add isAndroidApp to boot cache #4031

merged 6 commits into from
Jan 6, 2025

Conversation

AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Jan 2, 2025

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

Copy link

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview Jan 6, 2025 9:09am
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) Jan 6, 2025 9:09am

@AmarTrebinjac AmarTrebinjac marked this pull request as ready for review January 2, 2025 10:36
@AmarTrebinjac AmarTrebinjac requested a review from a team as a code owner January 2, 2025 10:36
Copy link
Member

@idoshamun idoshamun left a 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

Copy link
Contributor

@rebelchris rebelchris left a 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,
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Member

@sshanzel sshanzel left a 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!

@AmarTrebinjac AmarTrebinjac merged commit d9ab8ba into main Jan 6, 2025
10 checks passed
@AmarTrebinjac AmarTrebinjac deleted the MI-709 branch January 6, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants