RCS should work between different instances; AFAIK, Vodafone and Google are exchanging messages, for example.
Of course you could implement a full RCS client in your own app, deregister RCS in the Google Messenger app and then interface with your server of choice that way. However, this is significantly more work than just accessing the normal text messages on a phone. You'd also need to implement Google's extensions on top of RCS yourself (like E2EE encryption) and set up some kind of notification system (because you can't poll a server or listen on a socket without getting killed in the background).
It's all theoretically possible, but it's a lot of work. This is one of the reasons why Signal decided to drop SMS support all together in their app. Google could expose RCS messaging like they do text messaging, but they just... don't. Unless you're Samsung, of course; Samsung is allowed to call into the RCS APIs but other apps aren't.
Of course you could implement a full RCS client in your own app, deregister RCS in the Google Messenger app and then interface with your server of choice that way. However, this is significantly more work than just accessing the normal text messages on a phone. You'd also need to implement Google's extensions on top of RCS yourself (like E2EE encryption) and set up some kind of notification system (because you can't poll a server or listen on a socket without getting killed in the background).
It's all theoretically possible, but it's a lot of work. This is one of the reasons why Signal decided to drop SMS support all together in their app. Google could expose RCS messaging like they do text messaging, but they just... don't. Unless you're Samsung, of course; Samsung is allowed to call into the RCS APIs but other apps aren't.