Messages going offline when macbook is on sleep or shut

I have only one account on Messages, which is a Google account.

I don't understand why Messages goes offline when I shut the lid of my Macbook or shut it down even when "When I quit Messages, set my status to Offline" is unticked and "Set my status to Away after the computer is inactive" is ticked. I do not quit Messages at any point.


User uploaded file

MacBook

Posted on Mar 15, 2018 11:50 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 25, 2018 11:43 AM

Hi,


Open Finder window

Use the GO Menu whilst holding down the ALT/Option key (⌥) and the select the Library that appears.

Navigate to Preferences.

Find com.apple.imagent.plist


Highlight this files and then use the CMD and i keys together (Get Info)

Scroll to the bottom.

Highlight your Account's short name in the list.

Unlock th padlock then use the cogwheel like icon underneath.

It should show the phrase "Make yourShortname (me) the Owner"

This should be greyed out if you Own the file.

You should also have Read and Write permissions.


This .plist is the one that holds the setting for "When I Quit..."


The other info about the Status change (or not) when coming back from Sleep of Screen Sleep is held in com.apple.iChat.plist itself.


Make sure you Own and have Read and Write permissions as well.


If you do own these and have the Read and Write permissions but it still does not change then do this:-

https://support.apple.com/en-gb/HT203538



This is because the path to Write to those files is via ~/Library/Containers/com.apple.ichat/Data/Library/Preferences and then Alias files that point to the Originals.

You need to own the Original files, the aliases, and all the folders that they are contained inside.






User uploaded file

7:43 pm Wednesday; April 25, 2018


 iMac 2.5Ghz i5 2011 (Sierra)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
 iPhone 6 iOS 11.x and an iPad (2)

Similar questions

18 replies

Apr 26, 2018 12:27 PM in response to scrutinizer82

Hi,


If you settings are this:-

User uploaded file

Then when the computer goes to Sleep a prompt to the Servers for Buddy list (Google or other Jabber server) is not sent.

Other people cannot see you as Off Line.

As far as they are concerned your Status is the same.


If the second line is set as in the picture then when you come back the app should appear to be open and On Line again.

You should not see the Window to Ask you what to do and you should not see any window suggesting the App is playing catchup to reset the Status or Available.


I say Should.


As I said above it relies on the fact that the setting is written to the .plist involved.


If you go to the folder ~/Library/Messages and then use the View Menu and then View Options and select show Modified column you should see that the chat.db items have dates and time that match when the App was opened (or the last message was sent):-

User uploaded file


If they have not changed then the app is not writing to the File properly.


In ~/Library/Preferences then the com.apple.ichat.plist should also have today's Date when the app started up.

If you change the setting then the Time you did this should show:-

User uploaded file


It this does not change then the .plist file is not being written to.


As I said as well the Read and Write route is via ~/Library/Containers/com.apple.iChat/Data/Library/Preferences and the relevant Alias

User uploaded file

The Path/Route to the Aliases are shown in the blue box.

The iChat.plist Alias is indicated by the red one and the Arrow denoting it is an Alias file is also indicated.


It is because this App is a Sandboxed one (which protects the system if the app fails) that you get this convoluted Read/Write path.


I hope that is clearer.




User uploaded file

8:27 pm Thursday; April 26, 2018


 iMac 2.5Ghz i5 2011 (Sierra)
 G4/1GhzDual MDD (Leopard 10.5.8)
 MacBookPro 2Gb (Snow Leopard 10.6.8)
 Mac OS X (10.6.8),
 iPhone 6 iOS 11.x and an iPad (2)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Messages going offline when macbook is on sleep or shut

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.