<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7655.10">
<TITLE>presence subsription rejection notifications while offline.</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hi Folks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">I</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">ve built a minimal xmpp client to keep track of contacts presence status. In previous versions, if a user asked a contact for a subscription to </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">p</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">resence, my client automatically granted it. Now I want to notify a contact of such a request and let them</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">grant or reject it. I have it working according to rfc 3921</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> section 8.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">I do have one question/issue though. If a users presence request is denied by the contact while the user is online, he gets notified of the</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">rejection</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> as defined in section 8.2.1 (using the ejabberd server). </FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">I can then pop up a notification stating</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">“</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">so and so rejected your request</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">”</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">.</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">But</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">if the user is offline when the rejection happens, and then logs in, he gets no such notification. He just gets his roster with that contact in the</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">“</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">none</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">”</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> state with the</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">“</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">ask</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">”</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> flag stripped and no indication of how that contact got that way. Since a contact can end up in the none state in various ways, I can</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">t use that fact to pop up a notification. So my question is, how can I give a user notification that his subscription requests were rejected while he was offline? I see that psi has the same issue and so does Exodus. They give rejection notifications while the user is online</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">, but not when he got the rejection while logged off and then logs on. Any way to implement such a feature?</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>