<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Oct 21, 2013, at 2:12 PM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><p style="margin-right: 0px; margin-bottom: 15px; margin-left: 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px; margin-top: 0px !important;">
Hello,</p><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">for [<a href="https://issues.jboss.org/browse/AGPUSH-110" rel="noreferrer" style="color:rgb(65,131,196);text-decoration:none">1</a>] I'd like to propose a slight change to the message format spec ([<a href="http://staging.aerogear.org/docs/specs/aerogear-push-messages/" rel="noreferrer" style="color:rgb(65,131,196);text-decoration:none">2</a>]):</p><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">The introduction of a new field, called '<b>ttl</b>', which contains a value (in seconds). This value will be translated (by the UnifiedPush Server) into the specific details of the supported platforms (GCM and APNs; NOTE: SimplePush standard does not this support this atm)...</p><div><br></div></div></blockquote><div><br></div>+1 makes sense<br><blockquote type="cite"><div dir="ltr"><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">An example for a message which expires in one hour:</p><pre style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 13px; line-height: 19px; margin-top: 15px; margin-bottom: 15px; background-color: rgb(248, 248, 248); border: 1px solid rgb(221, 221, 221); overflow: auto; padding: 6px 10px; border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;"><code style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:normal;margin:0px;padding:0px;border:none;background-color:transparent;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px">curl -3 -u "{PushApplicationID}:{MasterSecret}"
   -v -H "Accept: application/json" -H "Content-type: application/json" 
   -X POST
   -d '{
       "alias" : ["<a href="mailto:user@account.com">user@account.com</a>"],
       "ttl" : 3600, // expires in one hour
       "message": {
         "alert":"URGENT CALL!!!!",
         "sound":"default"
       }
     }'

<a href="https://SERVER:PORT/CONTEXT/rest/sender">https://SERVER:PORT/CONTEXT/rest/sender</a>
</code></pre><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">On our fluent client APIs (NodeJS and Java), I'd propose we add a&nbsp;<code style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:normal;margin:0px 2px;padding:0px 5px;border:1px solid rgb(221,221,221);background-color:rgb(248,248,248);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;white-space:nowrap">timeToLive(secondsInInt)</code>&nbsp;method to the APIs;</p><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">Any thoughts ?</p><div><br></div></div></blockquote><div><br></div>+1 too</div><div><br><div><br></div><div><br></div><blockquote type="cite"><div dir="ltr"><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">
-Matthias</p><p style="margin: 15px 0px; font-family: Helvetica, arial, freesans, clean, sans-serif; font-size: 15.454545021057129px; line-height: 22.727272033691406px;">[1]&nbsp;<a href="https://issues.jboss.org/browse/AGPUSH-110" rel="noreferrer" style="color:rgb(65,131,196);text-decoration:none">https://issues.jboss.org/browse/AGPUSH-110</a>&nbsp;<br>
[2]&nbsp;<a href="http://staging.aerogear.org/docs/specs/aerogear-push-messages/" rel="noreferrer" style="color:rgb(65,131,196);text-decoration:none">http://staging.aerogear.org/docs/specs/aerogear-push-messages/</a></p><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>
_______________________________________________<br>aerogear-dev mailing list<br><a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></body></html>