Fix a bug where scanning a universal link as a QR code would open the app without handling the link. (#5804)

This commit is contained in:
Doug
2026-06-29 15:11:15 +01:00
committed by GitHub
parent ad8d70ebe0
commit 566d8edeab
@@ -46,6 +46,12 @@ struct Application: App {
.onOpenURL { url in
openURL(url, isExternalURL: true)
}
.onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in
// Universal Links opened from the Camera app's QR scanner (and NFC tags) are
// delivered as a browsing-web user activity rather than through `onOpenURL` 🤷‍♂️
guard let url = userActivity.webpageURL else { return }
openURL(url, isExternalURL: true)
}
.onContinueUserActivity("INStartVideoCallIntent") { userActivity in
// `INStartVideoCallIntent` is to be replaced with `INStartCallIntent`
// but calls from Recents still send it ¯\_(ツ)_/¯