Yes, you can - it can send the same messages from the device that will be sent from the server. However, this has the following problems:
- You put your API key in your application so that someone can decompile the APK to get it.
- Your users need a way to share their GCM registration IDs with each other. If both users had both of their identifiers expiring at the same time, there would be no way to share them.
Indeed, it will take about an hour to write your application and post it on AppEngine, and cost less than $ 10 per month, even for a ton of users.
For an example of a dead simple Java message server, check out a server that supports one of my applications:
https://github.com/charlesmunger/touch-to-text-server.git
Charles Munger
source share