Skip to content

Instantly share code, notes, and snippets.

@srivastavarobin
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save srivastavarobin/8982444 to your computer and use it in GitHub Desktop.

Select an option

Save srivastavarobin/8982444 to your computer and use it in GitHub Desktop.

Revisions

  1. srivastavarobin revised this gist Feb 13, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion DDNotifReadme.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    5. Send the notification
    6. Get the second batch and send the notification
    7. Repeat 6 till the list is exhausted
    8. Following is achieved
    8. Following would be achieved
    1. Send push notifications
    2. Get the list of canonical IDs
    * Phone number
  2. srivastavarobin revised this gist Feb 13, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions DDNotifReadme.md
    Original file line number Diff line number Diff line change
    @@ -12,19 +12,19 @@
    6. Get the second batch and send the notification
    7. Repeat 6 till the list is exhausted
    8. Following is achieved
    a. Send push notifications
    b. Get the list of canonical IDs
    1. Send push notifications
    2. Get the list of canonical IDs
    * Phone number
    * User ID
    * Old Push ID
    * New Push ID
    * Available as JSON with the date and time of its creation
    c. Get the list of IDs for which the push could not be send along with the reason
    3. Get the list of IDs for which the push could not be send along with the reason
    * Phone number
    * User ID
    * Push ID
    * Reason
    d. Summary of the operation
    4. Summary of the operation
    * Number of notifications to be sent
    * To how many people was the notification sent successfully
    * For how many people it failed
  3. srivastavarobin revised this gist Feb 13, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions DDNotifReadme.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    #Doodly Doo Notification Server
    ##What does this server do?
    1. Takes the kind of notification to send
    a. Doodle World
    b. Greetings
    c. Emojis
    d. Rage Face
    1. Doodle World
    2. Greetings
    3. Emojis
    4. Rage Face
    2. Takes the message to send *(Note: Message should not contain hyphens (-))*
    3. Connect to the MySQL server
    4. Get the first 1000 records
  4. srivastavarobin created this gist Feb 13, 2014.
    40 changes: 40 additions & 0 deletions DDNotifReadme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,40 @@
    #Doodly Doo Notification Server
    ##What does this server do?
    1. Takes the kind of notification to send
    a. Doodle World
    b. Greetings
    c. Emojis
    d. Rage Face
    2. Takes the message to send *(Note: Message should not contain hyphens (-))*
    3. Connect to the MySQL server
    4. Get the first 1000 records
    5. Send the notification
    6. Get the second batch and send the notification
    7. Repeat 6 till the list is exhausted
    8. Following is achieved
    a. Send push notifications
    b. Get the list of canonical IDs
    * Phone number
    * User ID
    * Old Push ID
    * New Push ID
    * Available as JSON with the date and time of its creation
    c. Get the list of IDs for which the push could not be send along with the reason
    * Phone number
    * User ID
    * Push ID
    * Reason
    d. Summary of the operation
    * Number of notifications to be sent
    * To how many people was the notification sent successfully
    * For how many people it failed
    * Total number of canonical IDs generated


    ##Node Modules being used
    Functionality | Module
    ------------- | -------
    Express | [```express```](https://github.com/visionmedia/express) Guide available [here](http://expressjs.com/guide.html)
    Android Push Notification | [```node-gcm```](https://github.com/ToothlessGear/node-gcm)
    MySQL Connect | [```mysql```](https://github.com/felixge/node-mysql)