Skip to content

Commit 82a3e70

Browse files
committed
ios: add debug application state function
1 parent 7d6b6b6 commit 82a3e70

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ios/RNInCallManager/RNInCallManager.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,4 +619,18 @@ class RNInCallManager: NSObject, AVAudioPlayerDelegate {
619619
resolve(self.recordPermission)
620620
})
621621
}
622+
623+
func debugApplicationState() -> Void {
624+
var appState = "unknow"
625+
switch UIApplication.sharedApplication().applicationState {
626+
case UIApplicationState.Active:
627+
appState = "Active"
628+
case UIApplicationState.Inactive:
629+
appState = "Inactive"
630+
case UIApplicationState.Background:
631+
appState = "Background"
632+
}
633+
634+
NSLog("RNInCallManage ZXCPOIU: appState: \(appState)")
635+
}
622636
}

0 commit comments

Comments
 (0)