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

Android mobile improvements #1989

Merged
merged 14 commits into from
Aug 24, 2023
Merged

Android mobile improvements #1989

merged 14 commits into from
Aug 24, 2023

Conversation

IanPhilips
Copy link
Collaborator

@IanPhilips IanPhilips commented Aug 24, 2023

@vercel
Copy link

vercel bot commented Aug 24, 2023

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

Name Status Preview Comments Updated (UTC)
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 24, 2023 9:10pm
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 24, 2023 9:10pm
prod ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 24, 2023 9:10pm

}, 250)
}
}, [listeningToNative, fbUser])
const sendWebviewAuthInfo = (user: FirebaseUser) => {
Copy link
Collaborator Author

@IanPhilips IanPhilips Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that this is called directly, if the auth.onAuthStateChanged actually works and we were using it, we won't get updates automatically from the useEffect. If people are left signed out we'll probably want to add this back in.

baseUri +
(endpoint ?? 'home') +
nativeQuery +
`&rand=${Math.random().toString()}`
Copy link
Collaborator Author

@IanPhilips IanPhilips Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a random string ensures the <WebView/> src parameter will treat a new url from our setUrlToLoad as a new state even if it was previously set to the same url. this is useful bc we don't track url changes outside of the webview, just new ones the user imports from a deeplink or notification.

@IanPhilips IanPhilips merged commit a873580 into main Aug 24, 2023
@IanPhilips IanPhilips deleted the mobile-push-notifs branch August 24, 2023 21:49
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.

1 participant