<div dir="ltr">Hey !<div style>We would like to provide, in a quite short delay (coming 2 weeks) a demo showing all the different bits of the &quot;push&quot; world , meaning :</div><div style> client | push server | JEE Backend App</div>
<div style><br></div><div style>We already have the push server (<span style="font-family:arial,sans-serif;font-size:12.800000190734863px">aerogear-unified-push-server) : so we need a client (iOS and maybe also Android) and a simple JEE backend application.  The backend app will mostly be scaffolded and will use the </span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"> aerogear-unified-push-java-</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">client to send messages to the Push Server. </span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"> </span></div>
<div style><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div style><font face="arial, sans-serif">Then of course, we need to think about an idea of the application itself. It needs to stay really simple, show  how we can send selectively and should be a bit &quot;business&quot; related.</font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">So, I came up with an idea this morning that we can discuss here, of course if you have any other idea don&#39;t hesitate to share it.</font></div>
<div style><font face="arial, sans-serif"><br></font></div><div style><h1 style="font-size:2.5em;margin-right:0px;margin-bottom:15px;margin-left:0px;padding:0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;margin-top:0px!important">
Push Demo</h1><h1 style="font-size:2.5em;margin:1em 0px 15px;padding:0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif">
<a name="introduction" class="" href="https://gist.github.com/sebastienblanc/5755548#introduction" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"><span class=""></span></a>Introduction</h1>
<p style="margin:15px 0px"><font color="#000000" face="Helvetica, arial, freesans, clean, sans-serif"><span style="font-size:14.857142448425293px;line-height:14.285714149475098px">Prodoctor is a company in the health care industry, selling a revolutionary tensiometer. Their clients are doctors. Prodoctor has several sales agents all over the United States. At the headquarters, they have their &quot;first line&quot; sales </span><span style="font-size:15.199999809265137px;line-height:14.274999618530273px">department</span><span style="font-size:14.857142448425293px;line-height:14.285714149475098px">  doing cold calls all along the day. As soon they have a concrete lead, they use their Prodoctor Admin app to filter out available sales Agents available in the lead area. They can then send them a push notification.</span></font></p>
<p style="margin:15px 0px"><font color="#000000" face="Helvetica, arial, freesans, clean, sans-serif"><span style="font-size:14.857142448425293px;line-height:14.285714149475098px">The sales agent receives the notification on their mobile device that a new lead is available. The agent will handle the lead by &quot;accepting&quot; the </span><span style="font-size:15.199999809265137px;line-height:14.274999618530273px">notification</span><span style="font-size:14.857142448425293px;line-height:14.285714149475098px">  informing the other agents that the lead has been processed.</span></font></p>
<h1 style="font-size:2.5em;margin:1em 0px 15px;padding:0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif"><a name="the-client-app" class="" href="https://gist.github.com/sebastienblanc/5755548#the-client-app" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"><span class=""></span></a>The client app</h1>
<ol style="margin:15px 0px;padding-left:30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>The client consist of a list of leads : a lead can be &quot;open&quot; or &quot;in process&quot;, leads &quot;in process&quot; of other sales are not visible.</li>
</ol><ul style="margin:15px 0px;padding:0px 0px 0px 30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>optional : when the client tap a lead it appears on a map</li>
</ul><ol style="margin:15px 0px;padding-left:30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>The client has a status that he can set: STANDBY | WITH_CLIENT |PTO</li>
<li>The client has a location</li><li>The client has an alias</li></ol><h1 style="font-size:2.5em;margin:1em 0px 15px;padding:0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif">
<a name="prodoctor-admin-client" class="" href="https://gist.github.com/sebastienblanc/5755548#prodoctor-admin-client" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"><span class=""></span></a>Prodoctor Admin client</h1>
<ol style="margin:15px 0px;padding-left:30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>The admin client can create a new lead :</li>
</ol><ul style="margin:15px 0px;padding:0px 0px 0px 30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>A lead consist of a name and a location</li>
</ul><ol style="margin:15px 0px;padding-left:30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>The admin client can query for Sales Agents based on :</li>
</ol><ul style="margin:15px 0px;padding:0px 0px 0px 30px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><li>Status</li><li>Location</li>
</ul><ol style="margin:15px 0px;padding-left:30px"><li><p style="margin:15px 0px"><font color="#000000" face="Helvetica, arial, freesans, clean, sans-serif"><span style="font-size:14.857142448425293px;line-height:14.285714149475098px">The admin client can assign a lead to a selection (1..n) of sales agents, this will send out the </span><span style="font-size:15.199999809265137px;line-height:14.274999618530273px">notifications</span><span style="font-size:14.857142448425293px;line-height:14.285714149475098px">.</span></font></p>
</li><li style="color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14.857142448425293px;line-height:14.285714149475098px"><p style="margin:15px 0px">The admin client manage the Sales Agents DB.</p>
</li></ol></div></div>