Skip to content

Commit

Permalink
fix(ios): deprecated warning from capacitor
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf authored and tiensonqin committed Sep 15, 2022
1 parent b150e1a commit 02bccce
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions ios/App/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {

var success = true
if CAPBridge.handleOpenUrl(url, options) {
success = ApplicationDelegateProxy.shared.application(app, open: url, options: options)
}
return success
}
func application(_ application: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
return ApplicationDelegateProxy.shared.application(application, open: url, options: options)
}

func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
// Called when the app was launched with an activity, including Universal Links.
Expand All @@ -62,5 +57,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
NotificationCenter.default.post(name: .capacitorStatusBarTapped, object: nil)
}
}

}

0 comments on commit 02bccce

Please sign in to comment.