[Log] Log URL and options when app is launched, or deeplink is handled. We can't always use a debug build for this as iOS might consider the app is not installed (e.g. trigger from PassKit/Wallet pass)

pull/6640/head
Hwee-Boon Yar 2 years ago
parent cb97cba3ca
commit d76e593b9b
  1. 4
      AlphaWallet/AppDelegate.swift

@ -8,6 +8,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
do {
//Keep this log because it's really useful for debugging things without requiring a new TestFlight/app store submission
NSLog("Application launched with launchOptions: \(String(describing: launchOptions))")
appCoordinator = try AppCoordinator.create()
appCoordinator.start(launchOptions: launchOptions)
} catch {
@ -43,6 +45,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// URI scheme links and AirDrop
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
//Keep this log because it's really useful for debugging things without requiring a new TestFlight/app store submission
NSLog("Application open url: \(url.absoluteString) options: \(options)")
return appCoordinator.applicationOpenUrl(url, options: options)
}

Loading…
Cancel
Save