Note that there are some explanatory texts on larger screens.

plurals
  1. POStandard Design Pattern for building a Social Notification System for Android -
    primarykey
    data
    text
    <p>Working on a social app that has alot of the standard social networking features such as friend requests, private messages and comments and im in need of a real time or near real time notification system. Ive looked into GCM a bit and done a few tuts.</p> <p>My question is how should my server side be structured ? what is the standard pattern when it comes to implementing a near realtime social notification system? Ive found lots of tuts that focus on just getting GCM up and running , but how a system overall should be structured is still vague. For simplicity lets use a private messaging system as a example, from what ive gathered it seems that the way it goes is:</p> <ul> <li>User A Types message >></li> <li>User A hits submit >></li> <li>Message is sent from the client to the server to be processed by the API >></li> <li>Message reaches API where its processed using the sendMessage function >></li> <li>Inside the sendMessage function the message is validated and written to the db >></li> <li>Inside the sendMessage function if(message_inserted_into_db){ send notification to GCM}</li> <li>Code is setup on the Android client side to retrieve notifications from GCM</li> </ul> <p>Am I missing any other steps? Are there any other things that should trigger sending notifications? Should i use push exclusively or a combination of push and poll?</p> <p>Id like to make it very clear I AM NOT CONFUSED ABOUT HOW TO IMPLEMENT GCM ON A TECHNICAL LEVEL...so please do not post a link to the google documentation. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload