This document will guide you on how you can configure your Mac to automatically restart the BlueBubbles Server app if the app crashes (unsafe exit)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.bluebubbles.server</string>
<key>Program</key>
<string>/Users/{username}/Applications/BlueBubbles.app/Contents/MacOS/BlueBubbles</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
</dict>
</plist>launchctl bootstrap gui/$(id -u $(whoami)) ~/Library/LaunchAgents/com.bluebubbles.server.plistlaunchctl kickstart gui/$(id -u $(whoami))/com.bluebubbles.serverlaunchctl remove com.bluebubbles.serverlaunchctl print gui/$(id -u $(whoami))/com.bluebubbles.server