I was using BlueBubbles to read/send Apple Messages from my Linux machines, and it is pretty good. In addition to providing an Android app it also has a Linux desktop app. The UI is maybe a tad fussy and hard to dial in, but if you’re just wanting to use Apple Messages from Linux, it’s fine.
It works by running a server application on your Mac that uses Apple’s SystemEvents to talk to Messages. That server is available via an ephemeral proxy BlueBubbles can set up for you using a number of public proxy services.
Overall, seems pretty reliable and even offers an API. One mildly glitchy thing is that the proxy is periodically torn down and set back up again, reappearing with a different host name and breaking the connection of any of your clients.
There’s supposed to be a way to reconnect using Google OAuth, but that was throwing errors and I couldn’t find that particular issue documented. I was hoping its API, which is accessible from the machine you’re running it on, would maybe have an endpoint that returns the name of the proxy it’s running on, because that way I could at least ssh in and run a quick curl command to retrieve the proxy name when it resets, or even write a daemon to echo that out to a gist or something, but nothing doing.
In the mean time, I’ve learned about AirMessage, which does something similar: You run it on your Mac desktop machine and it provides an alternate client for Messages you can run on something besides a Mac. It also has an Android app. It doesn’t have a native Linux app, but does provide a web app available through Google OAuth. I just run it in a Firefox tab and allow it to send notifications. The UI is pretty clean, and I learned you can paste images into the message field to share them.
It is not nearly as sophisticated as BlueBubbles – no tapbacks, for instance – but it does the trick: I can work on one of my Linux machines and get all my texts.