WIP
This commit is contained in:
parent
087bbd5840
commit
00e96b5428
|
@ -1,6 +1,6 @@
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
import Flutter
|
import Flutter
|
||||||
import app_links
|
|
||||||
|
|
||||||
@UIApplicationMain
|
@UIApplicationMain
|
||||||
@objc class AppDelegate: FlutterAppDelegate {
|
@objc class AppDelegate: FlutterAppDelegate {
|
||||||
|
@ -9,18 +9,6 @@ import app_links
|
||||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||||
) -> Bool {
|
) -> Bool {
|
||||||
GeneratedPluginRegistrant.register(with: self)
|
GeneratedPluginRegistrant.register(with: self)
|
||||||
|
|
||||||
// Handle deep link
|
|
||||||
if let url = AppLinks.shared.getLink(launchOptions: launchOptions) {
|
|
||||||
AppLinks.shared.handleLink(url: url)
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||||
}
|
}
|
||||||
|
|
||||||
override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
|
|
||||||
AppLinks.shared.handleLink(url: url)
|
|
||||||
return super.application(app, open: url, options: options)
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue