Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions shared/ios/Keybase/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ public class AppDelegate: ExpoAppDelegate, UNUserNotificationCenterDelegate, UID
let wd = MainThreadWatchdog(appStartTime: AppDelegate.appStartTime, writeLog: { [weak self] msg in
self?.writeStartupTimingLog(msg)
})
wd.install()
wd.start(context: "cold start")
self.watchdog = wd

self.didLaunchSetupBefore()
// Install the SIGUSR1 stack-capture handler after KeybaseInit — Go's runtime
// initializes its own signal handlers during KeybaseInit and would overwrite
// anything registered before it.
wd.install()

if let remoteNotification = launchOptions?[.remoteNotification] as? [AnyHashable: Any] {
let notificationDict = Dictionary(uniqueKeysWithValues: remoteNotification.map { (String(describing: $0.key), $0.value) })
Expand Down Expand Up @@ -464,8 +467,9 @@ public class AppDelegate: ExpoAppDelegate, UNUserNotificationCenterDelegate, UID
}

public override func applicationWillEnterForeground(_ application: UIApplication) {
NSLog("applicationWillEnterForeground: hiding keyz screen.")
NSLog("applicationWillEnterForeground: start, hiding keyz screen.")
hideCover()
NSLog("applicationWillEnterForeground: done")
}

}
Expand Down