I'm building a project that will use Google's GCM, something new in my projects, and I would like to know the following.
At the time the user registers who will request the first data from the server will be the client, and after the user is registered who will request new information will be Google Cloud Messaging. But I would like to know if it would not be interesting soon after the user registered in the system, GCM was the one who sent the initial system information and configurations to the client, leaving the code responsible for the synchronizations all in one place, in this case, in the but I do not know if it would take the user to access the system first.
You also have another option, to create a Java file in which you are called from the business rule of both the call from server to client, and from client to server.
If you have examples on standardization with APIs, especially from GCM, as for other business rules of a system, I also thank you.