Skip to content

Commit

Permalink
Fix: avoid collisions with open url methods from other plugins (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Marina González <marinagonzalez@mindapps.se>
Co-authored-by: Anton Borries <anton.borries@gmail.com>
  • Loading branch information
3 people authored Nov 21, 2021
1 parent fcfa89a commit 2bc3fdf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/Classes/SwiftHomeWidgetPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2bc3fdf

Please sign in to comment.