Can you explain more about what sort of product you’re creating?
OK, the app im developing will only run in the macs of the company i work at. The idea is for this to be a daemon that runs all the time and periodically sends data about the system to an api (some of this data i can only access as root). This app also comes with a Network Extension that uses the Content Filter apis to serve as a firewall.
Like I said earlier, one of the Timers i have repeats every 3 min and sends data to an api, based on this data the api tells my daemon what to do, wether it should download an update or update the current firewall rules used by the Net Ext. I was talking to @meatton about this and he suggested that I should merge my daemon and extension and perform all this repeating tasks inside the extension. I am against this idea for now because extensions cant be restarted using a simple
kill command so for troubleshooting it can be sort of dangerous.
I understand that using an app as a daemon is not ideal but I don't really think that has anything to do with the problems I am facing. Also, even if I absolutely had to separate the daemon from this App i would just end up with a blank helper application that has nothing in it, no UI, no code, etc.
Lastly, given that the app is an enterprise solution it is ditributed via MDM.