2

I am trying to identify the macOS Catalina processes which handle network communication with Apple's iMessage servers.

If you have iMessage enabled and quit the Messages app, incoming messages are still delivered to your computer.

I've tried killing the imagent and IMDPersistenceAgent processes because they sounded related to messaging, but the former seems to be related to FaceTime only and killing the latter did not stop incoming iMessages.

To be clear: I am not simply trying to disable iMessage. I am trying to identify the processes that handle communication with iMessage. This is for two reasons:

  1. The termination of these processes needs to be able to be executed in an automated bash script using pkill or something similar, and deactivation of iMessage cannot be done in such a way.
  2. The computer needs to remain activated with the iMessage service so that when the processes are restarted (or the computer is restarted and the processes are launched on their own), any pending incoming iMessages are delivered. If iMessage were to be deactivated and then later activated, any messages during the period of time which it was deactivated would not be delivered.
4
  • will deactivate iMessage from your account in System Preference work for you?
    – Udhy
    Commented Feb 11, 2020 at 17:55
  • @Udhy As I mentioned, disabling iMessage is not an option for me. I've added the two reasons to the original question.
    – Employee
    Commented Feb 11, 2020 at 20:49
  • Can’t you just turn on “Do not Disturb”
    – Allan
    Commented Feb 11, 2020 at 23:51
  • Unfortunately "Do not disturb" would not work for me because my goal is to stop network communication, not simply suppress/silence the notifications. In DND mode, the iMesages are still delivered and you can open the Messages app to view them.
    – Employee
    Commented Feb 16, 2020 at 17:58

1 Answer 1

4

iMessage message delivery is not as such handled seperately in a specific process for that single purpose.

Instead the generic apsd (Apple Push Notification Service Daemon) process handles the network communication. apsd handles Apple's push notification service in general.

The imagent process that you have already identified is indeed involved in iMessage, and not only Facetime. It is there to receive the notifications forwarded by the apsd process.

In addition there's a special case for iMessage attachments (i.e. very large iMessage messages in general). Their content is not transferred using push notificcations via apsd, but are rather downloaded from iCloud. That process is initiated via a notification from apsd however.

All in all this means that you can kill the apsd process, and keep it from restarting, and thereby stop iMessage messages from coming in (without "deactivating"). However it would also stop any other push notification from arriving at your computer.

10
  • And no way to control any of that I suppose?
    – Seamus
    Commented Feb 11, 2020 at 21:58
  • What do you mean by "control"? - You have plenty of options for "control", just depends on what you mean by it.
    – jksoegaard
    Commented Feb 11, 2020 at 22:02
  • Good point... I was wondering about the possibility of blocking iM notifications to my MacBook; i.e. only get them on my phone.
    – Seamus
    Commented Feb 11, 2020 at 22:11
  • Why not simply not login to iMessage on your MacBook? Or if you just don't want the notifications themselves, then go to System Preferences > Notifications and set them to None for Messages.
    – jksoegaard
    Commented Feb 11, 2020 at 22:22
  • That's (another) fair point. I guess it's because I find the (graphical) interface for notifications annoying. Silly I guess, but that's how I feel.
    – Seamus
    Commented Feb 12, 2020 at 3:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .