fix: update code to check correctly

This commit is contained in:
Prateek Sunal
2025-08-18 22:22:54 +05:30
parent db88432b9d
commit 1ce749e93e

View File

@@ -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
}
}