From 2bc3fdf7dc05b7338d003fd28dc89df5b783a3f2 Mon Sep 17 00:00:00 2001 From: Marina Date: Sun, 21 Nov 2021 10:34:40 +0000 Subject: [PATCH] Fix: avoid collisions with open url methods from other plugins (#42) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marina González Co-authored-by: Anton Borries --- ios/Classes/SwiftHomeWidgetPlugin.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/Classes/SwiftHomeWidgetPlugin.swift b/ios/Classes/SwiftHomeWidgetPlugin.swift index 06199748..45f769ff 100644 --- a/ios/Classes/SwiftHomeWidgetPlugin.swift +++ b/ios/Classes/SwiftHomeWidgetPlugin.swift @@ -135,8 +135,9 @@ public class SwiftHomeWidgetPlugin: NSObject, FlutterPlugin, FlutterStreamHandle public func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool { if(isWidgetUrl(url: url)) { latestUrl = url + return true } - return true + return false } private func isWidgetUrl(url: URL) -> Bool {