<p dir="ltr">Hi dre, got it working. But I see what you&#39;re saying. I should write my own observer similar to amppush and connect to my notifications server when needed ala APNS. </p>
<p dir="ltr">Makes much more sense. Thanks for the tip</p>
<p dir="ltr">Atli</p>
<div class="gmail_quote">On May 27, 2014 5:58 PM, &quot;Andre LaBranche&quot; &lt;<a href="mailto:dre@apple.com">dre@apple.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
This is a reasonable thing to do, as long as you don’t mind the AMP connections being alive all the time. For the most part, the AMP push stuff we have is for testing purposes (e.g. our client simulator can use it). One big difference between this and apple’s service (APNS) is that APNS uses a single TCP connection to transmit all pushes from all interested parties to a single device, making it (almost) infinitely more scalable than AMP.<br>

<br>
If you’re successfully registering for AMP pushes, then it sounds like you’re doing it right.<br>
<br>
Maybe check out the following for clues:<br>
<br>
The server side:<br>
<a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/calendarserver/push/amppush.py" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/calendarserver/push/amppush.py</a><br>
<br>
Client side example; this tool just registers for notifications / prints them to stdout:<br>
<a href="http://trac.calendarserver.org/browser/CalendarServer/trunk/calendarserver/tools/ampnotifications.py" target="_blank">http://trac.calendarserver.org/browser/CalendarServer/trunk/calendarserver/tools/ampnotifications.py</a><br>

<br>
-dre<br>
<br>
&gt; On May 27, 2014, at 5:38 AM, Atli Thorbjornsson &lt;<a href="mailto:atlithorn@gmail.com">atlithorn@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi all, I&#39;m trying to figure out if I can receive all caldav notifications via AMP? I have a client that successfully registers with the calendarserver but never gets any notifications of any changes.<br>
&gt;<br>
&gt; Basically I want to create something similar to the apple push notification service that is included. I need to notify clients that are running on other platforms so I thought I could hook up my own service via AMP.<br>

&gt;<br>
&gt; Am I barking up the wrong tree?<br>
&gt;<br>
&gt; Atli Thorbjornsson<br>
&gt; _______________________________________________<br>
&gt; calendarserver-dev mailing list<br>
&gt; <a href="mailto:calendarserver-dev@lists.macosforge.org">calendarserver-dev@lists.macosforge.org</a><br>
&gt; <a href="https://lists.macosforge.org/mailman/listinfo/calendarserver-dev" target="_blank">https://lists.macosforge.org/mailman/listinfo/calendarserver-dev</a><br>
<br>
</blockquote></div>