Restore await to dismissBrowser in intent handler (#9326)

This commit is contained in:
Samuel Newman
2025-11-04 16:57:52 +02:00
committed by GitHub
parent fd5b1b3a59
commit 16b14b9d13
5 changed files with 57 additions and 61 deletions
+1 -4
View File
@@ -36,10 +36,7 @@ export function useIntentHandler() {
const handleIncomingURL = async (url: string) => {
if (isIOS) {
// Close in-app browser if it's open (iOS only)
// TEMP: promise never resolves if the browser is not open, so don't await
// https://github.com/expo/expo/issues/40710
// add the await back when possible since it's needed to fix the IAB share bug -sfn
/* await */ WebBrowser.dismissBrowser().catch(() => {})
await WebBrowser.dismissBrowser().catch(() => {})
}
const referrerInfo = Referrer.getReferrerInfo()