<div dir="ltr">Hi Andre,<div><br></div><div>I am trying to get AMP push working.<b> Please pardon my ignorance on this.</b></div><div><br></div><div>Is there a sample implementation/design for AMP push <span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre">SubscribeToID / </span><span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre">UnsubscribeFromID / </span><span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre">NotificationForID</span> ?</div><div><br></div><div><div>I am not sure about the design and how to move forward on this.</div><div><br></div><div>* How does <span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre">SubscribeToID / </span><span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre">UnsubscribeFromID / </span><span style="background-color:rgb(248,238,199);color:rgb(121,93,163);font-family:consolas,&quot;liberation mono&quot;,menlo,courier,monospace;font-size:12px;white-space:pre">NotificationForID</span> work?</div><div>* How would their implementation/design look like ?</div><div><br></div><div>Please provide pointers.</div><div><br></div><div><br></div><div><a href="http://twistedmatrix.com/documents/current/api/twisted.protocols.amp.html">http://twistedmatrix.com/documents/current/api/twisted.protocols.amp.html</a><br></div><div><a href="https://github.com/apple/ccs-calendarserver/blob/e8c1adf17f4fa661926d70d2ddf8758d00aae06c/calendarserver/push/amppush.py#L35-L53" target="_blank" style="font-size:12.8px">https://github.com/apple/ccs-<wbr>calendarserver/blob/<wbr>e8c1adf17f4fa661926d70d2ddf875<wbr>8d00aae06c/calendarserver/<wbr>push/amppush.py#L35-L53</a><br></div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 13, 2016 at 9:33 AM, Andre LaBranche <span dir="ltr">&lt;<a href="mailto:dre@apple.com" target="_blank">dre@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt; On Sep 12, 2016, at 7:57 PM, Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com">monkeyfdude@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Can you please point me to APNS docs/examples as well?<br>
<br>
</span>Hi,<br>
<br>
Unfortunately APNS with CalendarServer is only supported when using Server.app, and only with Apple clients. This is because the APNS servers will only send pushes to Apple clients (via platform security controls). Also note that the Calendar.app client will only accept pushes associated with an APNS cert that contains a topicID in a (restricted) Apple namespace that is not available to third parties that obtain APNS server certs via the certificate portal website. Server.app is entitled to request certs in this restricted namespace, authenticated with iCloud credentials.<br>
<br>
Getting APNS to work for Apple clients and servers is simple: just turn it on in the Server.app GUI, and clients should notice and switch to APNS instead of polling.<br>
<br>
-dte<br>
</blockquote></div><br></div>