-
Notifications
You must be signed in to change notification settings - Fork 159
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
Conversation
IanPhilips
commented
Aug 24, 2023
•
edited
Loading
edited
- Opens in-app android browser for links with target ='_blank'
- Changes internal facing links to target = '_self'. This includes a hack for iframe embeds of markets on native.
- Adds workarounds for severed native<->client communication post android OOM: window.ReactNativeWebView.postMessage is not a function react-native-webview/react-native-webview#2680
- Removes Sentry, the remote mobile logging monitor as it was causing android build problems 😢
…n <a> tag for native
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
}, 250) | ||
} | ||
}, [listeningToNative, fbUser]) | ||
const sendWebviewAuthInfo = (user: FirebaseUser) => { |
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.
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()}` |
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.
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.