<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Apple Push Notification Service (APNS) is documented on the Apple Developer site: &nbsp;<a href="https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW9" class="">https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html#//apple_ref/doc/uid/TP40008194-CH100-SW9</a><div class=""><br class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 12, 2016, at 7:57 PM, Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com" class="">monkeyfdude@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you for the response. I will look into AMP.<div class=""><br class=""></div><div class=""><b class="">Can you please point me to APNS docs/examples as well?</b></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Gaurav Jain</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Sep 12, 2016 at 5:14 PM, Andre LaBranche <span dir="ltr" class="">&lt;<a href="mailto:dre@apple.com" target="_blank" class="">dre@apple.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hello Gaurav,<div class=""><br class=""></div><div class="">Glad you're enjoying CalendarServer!</div><div class=""><br class=""></div><div class="">Short answer: recipient inboxes receive scheduling messages sometime after the sender's request is acknowledged, not inline with the request.</div><div class=""><br class=""></div><div class="">You have noticed one of the key scalability enhancements in recent CalendarServer history: instead of synchronously delivering scheduling messages to recipients when a new or updated invitation is sent, we now create lightweight jobs (work requests) in the database to represent the actual work that is needed, typically one for each recipient, allowing the server to acknowledge the sender's request much more quickly. Shortly after the sender's request is completed, the jobs reach their start time and are processed, (perhaps by multiple / different servers in a large deployment).</div><div class=""><br class=""></div><div class="">Various aspects of the "scheduling in the queue" implementation are configurable, however I don't recommend changing any of these settings in your situation. See conf/caldavd-stdconfig.plist:</div><div class=""><a href="https://github.com/apple/ccs-calendarserver/blob/ff3ae19229b4ef8d72173c5eae67636f3adec198/conf/caldavd-stdconfig.plist#L1569" target="_blank" class="">https://github.com/apple/ccs-<wbr class="">calendarserver/blob/<wbr class="">ff3ae19229b4ef8d72173c5eae6763<wbr class="">6f3adec198/conf/caldavd-<wbr class="">stdconfig.plist#L1569</a></div><div class=""><br class=""></div><div class="">The exact amount of time it takes for a given recipient's inbox to update after an invitation was sent depends on various factors (configuration, number of attendees, server performance / load), so the best way to know when a specific inbox has a new message is to let the server tell you. CalendarServer offers two different notification systems: Apple Push Notification Service, and AMP (Asynchronous Message Passing, a Twisted framework). APNS is only an option for Apple platforms, but AMP can be integrated into other projects pretty easily - check out the docs:</div><div class=""><br class=""></div><div class=""><a href="http://twistedmatrix.com/documents/current/api/twisted.protocols.amp.html" target="_blank" class="">http://twistedmatrix.com/<wbr class="">documents/current/api/twisted.<wbr class="">protocols.amp.html</a></div><div class=""><br class=""></div><div class="">You would need to write an implementation for these three commands:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/apple/ccs-calendarserver/blob/e8c1adf17f4fa661926d70d2ddf8758d00aae06c/calendarserver/push/amppush.py#L35-L53" target="_blank" class="">https://github.com/apple/ccs-<wbr class="">calendarserver/blob/<wbr class="">e8c1adf17f4fa661926d70d2ddf875<wbr class="">8d00aae06c/calendarserver/<wbr class="">push/amppush.py#L35-L53</a></div><div class=""><br class=""></div><div class="">... and since your goal appears to be to tell *another* system to refresh because *IT* has received a new message, I might recommend implementing the AMP client on that system, if possible, to minimize the layers of indirection.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">-dre</div><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Sep 12, 2016, at 1:35 PM, Gaurav Jain &lt;<a href="mailto:monkeyfdude@gmail.com" target="_blank" class="">monkeyfdude@gmail.com</a>&gt; wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I have been using DCS 7.0 for a while and it works great. But there is one issue I would like to have clarification.</div><div class=""><br class=""></div><div class="">I assume server maintains inbox for all its principals. With that assumption,</div><div class=""><br class=""></div><div class=""><b class="">Use case is as follows:</b></div><div class=""><br class=""></div><div class="">* Organizer A sends an invite to attendee B</div><div class="">* Organizer A receives a success response from Server.</div><div class=""><br class=""></div><div class=""><b class="">Now my question is:</b></div><div class=""><br class=""></div><div class="">Will the server update the inbox of B before sending the success response to A or will it be updated sometime after?</div><div class=""><br class=""></div><div class=""><b class="">Reason I am asking:</b></div><div class=""><br class=""></div><div class="">In my case, A sends a client side notification to B to sync with server after receiving the success response.</div><div class=""><br class=""></div><div class="">But some of the time, B is not getting the updates after syncing with server.</div><div class=""><br class=""></div><div class="">If B syncs again after 5 - 10 secs, then it gets the update.</div><div class=""><br class=""></div><div class="">Could you please provide some pointers?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Gaurav Jain</div><div class=""><br class=""></div><div class="">PS: Thank you for DCS.</div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div>
______________________________<wbr class="">_________________<br class="">calendarserver-users mailing list<br class=""><a href="mailto:calendarserver-users@lists.macosforge.org" target="_blank" class="">calendarserver-users@lists.<wbr class="">macosforge.org</a><br class=""><a href="https://lists.macosforge.org/mailman/listinfo/calendarserver-users" target="_blank" class="">https://lists.macosforge.org/<wbr class="">mailman/listinfo/<wbr class="">calendarserver-users</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
_______________________________________________<br class="">calendarserver-users mailing list<br class=""><a href="mailto:calendarserver-users@lists.macosforge.org" class="">calendarserver-users@lists.macosforge.org</a><br class="">https://lists.macosforge.org/mailman/listinfo/calendarserver-users<br class=""></div></blockquote></div><br class=""></div></div></body></html>