Overview
- When the macOS app is closed, the os logs (debug) logs are not visible in the Console app.
- However even when the iOS app is closed / killed, the os logs (debug) logs are visible in the Console app.
What I have tried
- Console app menu Action > Include Debug Messages is checked
- Searched by
subsystem - Created a macOS app from the archive by choosing selecting
Debuggingoption
Note
- OS debug logs are visible when the macOS app is open
Questions
- How can I make macOS debug logs visible in the Console app when the Mac app is closed?
- Should I be searching by some other fields?
- Or is there any other alternative / workaround this because I need to debug this scenario when app is closed?
This is a macOS native app.
OK.
In general, macOS will not launch apps in the background in response to a silent push. That’s because macOS has a very different app model than iOS. Specifically, macOS makes it clear to the user which apps are running, in both the Dock and the app switcher. If macOS launched apps in the background like iOS does, that’d be very jarring for users.
Keep in mind that macOS’s app model is a lot more flexible than iOS’s. So you don’t need to be launched in the background by a silent push because you can just run indefinitely in the background. You can do that from your main app, but you can also do it from a background-only or UI element app that you install using SMAppService.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"