<div dir="ltr"><div><h1 style="font-size:28px;margin:0px 0px 10px;padding:0px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif"></h1><h1 style="font-size:28px;margin:0px 0px 10px;padding:0px">AeroGear Connectivity</h1>
<p style="margin:0px 0px 15px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">The connectivity part in AeroGear (name: <em>AeroGear Connectivity Server</em>?) is responsible to deliver messages from the server to the client. It contains two <em>different</em> components:</p>
<ul style="margin:15px 0px;padding:0px 0px 0px 30px;font-size:13.63636302947998px;font-weight:normal;line-height:20px"><li>Device Push</li><li>Web Push</li></ul><p style="margin:15px 0px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">
The <strong>Web Push</strong> offers a low-latency message deliver from the server to <em>connected</em> clients, while the <strong>Device Push</strong> delivers notification-style messages to an explict application, deployed on a mobile device.</p>
<h2 style="margin:20px 0px 10px;padding:0px;font-size:24px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204)"><a name="device-push" class="" href="https://gist.github.com/matzew/17f793e4be11473423d2#device-push" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"></a>Device Push</h2>
<p style="margin:0px 0px 15px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">Push Notifications can be send to an explicit application (or even a specific installation), deployed on a mobile device, wheter the application is running or not. Push Messages are <strong>not</strong> intented to deliver large messages, nor in a low-latency fashion. They are more notification-style messages. The latency can not be controlled, since the actual message delivery, to the phone, is controlled by the actual <em>Push Network</em>.</p>
<p style="margin:15px 0px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">The AeroGear server submits messages, for a certain mobile app, to such a <em>Push Network</em> (like APNs or GCM). Different<em>Push Networks</em> have different limitations and restrictions, regarding message size, etc. Most <em>Push Networks</em> queue the message for offline devices (e.g. no connection, no roaming or device switched off). Once they are back online the message are delivered. Since these messages can become <em>stale</em> the <em>Push Network</em> allow to specify an expiry time.</p>
<h3 style="margin:20px 0px 10px;padding:0px;font-size:18px"><a name="supported-client-platforms" class="" href="https://gist.github.com/matzew/17f793e4be11473423d2#supported-client-platforms" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"></a>Supported client platforms</h3>
<p style="margin:0px 0px 15px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">Initially we are supporting the following platforms:</p><ul style="margin:15px 0px;padding:0px 0px 0px 30px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">
<li>Android</li><li>iOS</li></ul><p style="margin:15px 0px;font-size:13.63636302947998px;font-weight:normal;line-height:20px"><em><strong>Note</strong></em>: The above platforms includes hybrid containers, such as Apache Cordova!</p>
<p style="margin:15px 0px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">In the future we may add support for more platforms, such as:</p><ul style="margin:15px 0px;padding:0px 0px 0px 30px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">
<li>Firefox OS</li><li>Blackberry</li><li>Windows</li></ul><p style="margin:15px 0px;font-size:13.63636302947998px;font-weight:normal;line-height:20px"><em><strong>NOTE</strong></em>: One thing to have in mind, that there will be (eventually) a JS API, which allows a server to deliver messages to a JS application, deployed on any phone. <strong>However</strong>, it may take very long to get a unified standard, that works accross the different devices. Platforms like Firefox OS address this already, but only for one specific device type</p>
<h2 style="margin:20px 0px 10px;padding:0px;font-size:24px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(204,204,204)"><a name="web-push" class="" href="https://gist.github.com/matzew/17f793e4be11473423d2#web-push" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"></a>Web Push</h2>
<p style="margin:0px 0px 15px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">The <em>Web Push</em> allows a low-latency message exchange between <em>connected</em> (read: <em>online</em>) clients and the server. This is usually realized with technologies like WebSocket (or robust fallbacks like SockJS). Once a client application connects, it can exchange (receive and send) messages with the server (and other clients). Messages have no restrictions in terms of size of content (JSON, binary). While technoques like SockJS provide a <em>socket connection</em> between the client and the server, it is desired to have a more high-level API, to be used for the communication (e.g. Stomp).</p>
<p style="margin:15px 0px;font-size:13.63636302947998px;font-weight:normal;line-height:20px">Initially, Clients that are offline are <strong>NOT</strong> receiving messages. Messages are not persisted and stored, to be delivered later.</p>
<h3 style="margin:20px 0px 10px;padding:0px;font-size:18px"><a name="supported-client-platforms-1" class="" href="https://gist.github.com/matzew/17f793e4be11473423d2#supported-client-platforms-1" style="color:rgb(65,131,196);text-decoration:none;display:block;padding-left:30px"></a>Supported client platforms</h3>
<ul style="margin-top:15px;margin-right:0px;margin-left:0px;padding:0px 0px 0px 30px;font-size:13.63636302947998px;font-weight:normal;line-height:20px;margin-bottom:0px!important"><li>Android (Java client library)</li><li>
iOS (ObjC client library)</li><li>JavaScript (JS client library, to be used in browsers and hybrid containers)</li></ul><h1 style="font-size:28px;margin:0px 0px 10px;padding:0px;color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif">
<br></h1><div><span style="color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:20px">Thoughts? The original gist is store here: </span></div><div><font color="#000000" face="Helvetica, arial, freesans, clean, sans-serif"><span style="font-size:14px;line-height:20px"><a href="https://gist.github.com/matzew/17f793e4be11473423d2">https://gist.github.com/matzew/17f793e4be11473423d2</a></span></font><br>
</div><div><span style="color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:20px"><br></span></div><div style><span style="color:rgb(0,0,0);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:20px">-Matthias</span></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>
</div>