<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Maybe I missed off list discussions but is there any reason an "all inclusive" push demo doesn't include JS (SimplePush) in any of this discussion?</div><div><br>On Jun 14, 2013, at 8:53, Sebastien Blanc &lt;<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Service has been added :&nbsp;<div><br></div><div><h2 id="put-leadsid" style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif">
<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">PUT /leads/{id}</code></h2>
<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Update a Lead, typically used if a Sale Agent wants to assign a lead to him.</p>
<pre style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);white-space:pre-wrap;word-wrap:break-word;padding:5px 12px;line-height:24px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d '{"id":39,"version":0,"name":"Doctor No","location":"New York","phoneNumber":"121212121","saleAgent":"13bbaea3-9271-43f7-80aa-fb21360ff684"}' <a href="http://localhost:8080/prodoctor/leads/39">http://localhost:8080/prodoctor/leads/39</a>
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">
returns no data</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 3:30 PM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Exactly ! That is the "public" set needed by the client : login/logout , get leads, update location/status&nbsp;<div>
<br><div>Oh ! I miss one "assign lead to user" , I will update the doc</div>
<div>Seb</div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 3:25 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">nice!<div><br></div><div>that should be enough for the mobile clients, right ?&nbsp;</div></div><div>
<div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 14, 2013 at 3:21 PM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ok,<div>We got here a first set of services which should be enough for the demo purposes :&nbsp;</div><div><br>


</div><div><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif">



<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">POST /login</code></h2>



<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Login service, mandatory for all further request.</p>



<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json"
-X POST -d '{"loginName": "john", "password":"123"}' <a href="http://localhost:8080/prodoctor/login" target="_blank">http://localhost:8080/prodoctor/login</a> 
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">



It will return the user :</p><pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important"> {"id":"cb3c05aa-3fdd-4b4e-9b90-386fc7e5671a","enabled":true,"createdDate":1371215851063,"expirationDate":null,"partition":null,"loginName":"john","firstName":null,"lastName":null,"email":null,"status":"PTO","password":"123","location":"New York"}
</code></pre><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif">



<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">POST /logout</code></h2>



<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Logout service.</p>



<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json"
-X POST -d '{"loginName": "john", "password":"123"}' <a href="http://localhost:8080/prodoctor/logout" target="_blank">http://localhost:8080/prodoctor/logout</a> 
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">



returns no data</p><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif">



<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">GET /leads</code></h2>



<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">Obtain a list of leads.</p>



<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important"> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" 
-X GET -d '{"loginName": "john", "password":"123"}' <a href="http://localhost:8080/prodoctor/leads" target="_blank">http://localhost:8080/prodoctor/leads</a> 
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">



You will get a list of leads :</p><pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important">[{"id":39,"version":0,"name":"Doctor No","location":"New York","phoneNumber":"<a href="tel:0612412121" value="+49612412121" target="_blank">0612412121</a>"}]
</code></pre><h2 style="font-weight:normal;color:rgb(17,17,17);line-height:1em;font-size:2em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-bottom:5px;font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif">



<code style="color:rgb(0,0,0);font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;background-color:rgb(248,248,248);border:1px solid rgb(204,204,204);padding:0px 3px">PUT /saleagents/{id}</code></h2>



<p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">update a SaleAgent, the service will only update the status and the location for now.</p>



<pre style="line-height:24px;border-top-right-radius:3px;border-bottom-right-radius:3px;font-size:0.88em;white-space:pre-wrap;background-color:rgb(248,248,248);border-top-left-radius:3px;word-wrap:break-word;padding:5px 12px;border:1px solid rgb(204,204,204);border-bottom-left-radius:3px"><code style="font-size:0.88em;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:0px;border:0px!important"> curl -v -b cookies.txt -c cookies.txt -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d '{"id":"13bbaea3-9271-43f7-80aa-fb21360ff684","enabled":true,"createdDate":1371213256827,"expirationDate":null,"partition":null,"loginName":"john","firstName":null,"lastName":null,"email":null,"version":0,"status":"CHANGED","password":"123","location":"New York"}' <a href="http://localhost:8080/prodoctor/saleagents/13bbaea3-9271-43f7-80aa-fb21360ff684" target="_blank">http://localhost:8080/prodoctor/saleagents/13bbaea3-9271-43f7-80aa-fb21360ff684</a>
</code></pre><p style="margin:1em 0px;color:rgb(68,68,68);font-family:Georgia,Palatino,'Palatino Linotype',Times,'Times New Roman','Hiragino Sans GB',STXihei,微软雅黑,serif;font-size:16px;line-height:24px">



returns no data</p></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, Jun 14, 2013 at 10:21 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br>



</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>w00t!!!!<div><div><span></span><br><br>On Friday, June 14, 2013, Sebastien Blanc  wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">A quick update :<div><br>
</div><div>A first version of the backend application has been created and be found here&nbsp;<a href="https://github.com/sebastienblanc/aerogear-push-quickstart-backend/" target="_blank">https://github.com/sebastienblanc/aerogear-push-quickstart-backend/</a>&nbsp;</div>





<div>You can create Leads, then query for Sale Agents and send them a push notification containing the lead information.</div><div><br></div><div>The readme contains all the intructions. We made some tests with Matzew yesterday and we were able to send notification from the backend app to an Android Device, using of course, the Push Server : this means we have the complete loop working , yeah !&nbsp;</div>





<div><br></div><div>I will now work on the API of the Prodoctor app that will be used by the Native Clients.</div><div><br></div><div>Seb</div><div><br></div></div><div><br>
<br><div>On Thu, Jun 13, 2013 at 11:33 AM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Repo suggestions:<div><br></div><div><ul style="line-height:15.454545021057129px;font-size:12.727272033691406px;font-family:Arial,FreeSans,Helvetica,sans-serif;margin:16px 0px 0px;padding:0px 0px 0px 24px">






<li style="margin:0px;padding:0px">aerogear-push-quickstart-android</li><li style="margin:0px;padding:0px">aerogear-push-quickstart-backend</li><li style="margin:0px;padding:0px">aerogear-push-quickstart-ios</li></ul><div>






<font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px"><br></span></font></div></div><div><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px"><br>






</span></font></div><div><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px">JIRA =&gt;&nbsp;<a href="https://issues.jboss.org/browse/AEROGEAR-1261" target="_blank">https://issues.jboss.org/browse/AEROGEAR-1261</a></span></font></div>






<div><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:15.453125px"><br></span></font></div></div><div><div><div><br><br><div>
On Wed, Jun 12, 2013 at 3:34 PM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div><br><br><div><div>On Wed, Jun 12, 2013 at 3:29 PM, Summers Pittman <span dir="ltr">&lt;<a>supittma@redhat.com</a>&gt;</span> wrote:<br>







<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div>
    <div>On 06/12/2013 09:26 AM, Corinne Krych
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">I like summers idea of replacing the popup when app
        is open with leads list.<br>
        If you are in the leads list, the list could be updated but we
        still need some visual effect to say "new lead" maybe bold font
        with new icon.<br>
      </div>
    </blockquote></div>
    In the Google Plus application the refresh button becomes
    highlighted if there is new data. (As a suggestion).<br></div></blockquote><div><br></div></div><div>Or... confirm the "popup" and have the list refresh. A color (on the new lead) is fading out :)</div><div>






<div><div>
<br></div><div>&nbsp;</div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    Or we could add the entry and have a special style applied.<div><div><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
      </div>
      <div><br>
        <br>
        <div>On 12 June 2013 15:20, Summers Pittman
          <span dir="ltr">&lt;<a>supittma@redhat.com</a>&gt;</span>
          wrote:<br>
          <blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>In Android land you wouldn't do a popup.&nbsp; If the app
                is in the background you would put a notification in the
                drawer which the user may dismiss or interact with.<br>
                <br>
                If you are in the application it would probably be
                better to update the leads data store and send an update
                event.&nbsp; If the Leads are being browsed they can be
                updated.&nbsp; If they aren't then a badge could appear on
                the leads action.
                <div>
                  <div><br>
                    <br>
                    On 06/12/2013 04:52 AM, Sebastien Blanc wrote:<br>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <blockquote type="cite">
                    <div dir="ltr">Ok, there seems to be some agreement
                      on the idea, Nice !&nbsp;
                      <div>Let's focus a bit on the Mobile App. As said
                        before, it must stay really simple, so basically
                        that's what the apps does :&nbsp;</div>
                      <div> <br>
                      </div>
                      </div></blockquote></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div></div></div></div></blockquote></div></div></div></div></blockquote></div></div>




</blockquote><br><br></div></div><div><div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a><br>
</div></div><br></div></div><div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>


<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>


twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div>
</div></div><br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>aerogear-dev mailing list</span><br><span><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></span></div></blockquote></body></html>