  // MARK: - Application Status
  
  var isApplicationActive = true
  
  private func registerNotifications() {
    NotificationCenter.default.addObserver(self, selector: #selector(_applicationDidActive(_:)), name: UIApplication.didBecomeActiveNotification, object: nil)
    NotificationCenter.default.addObserver(self, selector: #selector(_applicationWillInactive(_:)), name: UIApplication.willResignActiveNotification, object: nil)
  }
  
  @objc private func _applicationDidActive(_ notification: Notification) {
    Logger.info("OneKey _applicationDidActive at \(Date().timeIntervalSince1970)")
    isApplicationActive = true
    lockQueue.async {