Skip to content

Commit

Permalink
fix(ios): fire appStateChange in incoming calls (#2282)
Browse files Browse the repository at this point in the history
  • Loading branch information
kajinka13 authored and jcesarmobile committed Jan 16, 2020
1 parent 3b43df1 commit 7fd0c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/CAPBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ enum BridgeError: Error {
self.isActive = true
appStatePlugin?.fireChange(isActive: self.isActive)
}
NotificationCenter.default.addObserver(forName: UIApplication.didEnterBackgroundNotification, object: nil, queue: OperationQueue.main) { (notification) in
NotificationCenter.default.addObserver(forName: UIApplication.willResignActiveNotification, object: nil, queue: OperationQueue.main) { (notification) in
CAPLog.print("APP INACTIVE")
self.isActive = false
appStatePlugin?.fireChange(isActive: self.isActive)
Expand Down

0 comments on commit 7fd0c7c

Please sign in to comment.