What is the best way for me to handle or approach this situation:
So far I have a pretty straightforward application:
I have a MySQL server set up alongside a ASP.NET Web API 2 REST Service that is used to fetch data from the database and send it as a JSON object to a client. The client in this case is an android application which requests the JSON and receives it, then does some stuff with it.
Now I need to implement a comment/forum/chat for this particular thing I'm doing for users to communicate with each other.
So currently:
MySQL database < request and receive data > REST Web API < request and receive data > Android
I want to add the following:
android < send and receive message and push the message automatically > REST Web API
I have looked into using Google Cloud Messaging however I just cannot find enough documentation on using c# web api + gcm. When I do find something it's deprecated and from 2011 or 2012. Maybe I'm just not patient enough. Which also lead me to PushSharp which I am currently looking into.
Maybe I can program this from scratch/myself? I just need a way to tell the other user of the chat to refresh or to send the message to them to update with, is this possible in a web api? Using UDP/TCP/WEBSOCKETS?
Thank you guys. I hope everything makes sense.