From 1ce749e93e9e1585525d67bb95b435bf009ed9aa Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Mon, 18 Aug 2025 22:22:54 +0530 Subject: [PATCH] fix: update code to check correctly --- mobile/apps/photos/ios/Runner/AppDelegate.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/apps/photos/ios/Runner/AppDelegate.swift b/mobile/apps/photos/ios/Runner/AppDelegate.swift index ea777b81ad..8673b08bc4 100644 --- a/mobile/apps/photos/ios/Runner/AppDelegate.swift +++ b/mobile/apps/photos/ios/Runner/AppDelegate.swift @@ -28,10 +28,10 @@ import workmanager // Retrieve the link from parameters if let url = AppLinks.shared.getLink(launchOptions: launchOptions) { // only accept non-homewidget urls for AppLinks - if let host = url.host, !host.contains("&homeWidget") { + if !url.absoluteString.contains("&homeWidget") { AppLinks.shared.handleLink(url: url) - // We have a link, propagate it to your Flutter app or not - return true // Returning true will stop the propagation to other packages + // link is handled, stop propagation + return true } }