Re: push notification system (pns)

2014-01-09 Thread Tomasz Sterna
Dnia 2014-01-09, czw o godzinie 09:07 +0530, Kumar Deepak pisze:

 I was thinking to integrate push notification system to inform about
 incoming messages for xmpp clients. Clearly, the case comes when
 clients become unavailable on mobile client.

I don't quite clearly understand what you need.

IIRC you would like a method to notify a disconnected client, that there
are pending offline messages waiting and it needs to connect to get
these;
am I right?



-- 
Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/





Re: push notification system (pns)

2014-01-09 Thread Kumar Deepak
Hi Tomasz,
Thanks for the response. I am referring to following scenario.

1. User A is running xmpp client at his iPHONE
2. User B is running xmpp client at his desktop
3. User B sends message to A, but A's xmpp client is either not running or
running in background.
4. Server stores the message for later delivery.
5. Server informs A by sending a message using apple push notification
infrastructure.
6. User A accepts the push and A's xmpp client connects to server and
server delivery the message to A.

I was thinking following.
1. Develop a pns (Push notification system) component.
2. pns connects to router.
3. c2s (mod_status) duplicates the incoming presence (both available 
unavailable) to pns.
4. c2s (mod_deliver) duplicates the message scheduled for storage to
pns.
5. pns connects to apple notification system and sends the message.

What your opinion here? Do I have something where I can refer this flow.

/



On Thu, Jan 9, 2014 at 2:49 PM, Tomasz Sterna to...@xiaoka.com wrote:

 Dnia 2014-01-09, czw o godzinie 09:07 +0530, Kumar Deepak pisze:

  I was thinking to integrate push notification system to inform about
  incoming messages for xmpp clients. Clearly, the case comes when
  clients become unavailable on mobile client.

 I don't quite clearly understand what you need.

 IIRC you would like a method to notify a disconnected client, that there
 are pending offline messages waiting and it needs to connect to get
 these;
 am I right?



 --
 Tomasz Sterna @ http://abadcafe.pl/ @ http://www.xiaoka.com/






Re: push notification system (pns)

2014-01-09 Thread Tomasz Sterna
Dnia 2014-01-09, czw o godzinie 22:00 +0530, Kumar Deepak pisze:

 1. User A is running xmpp client at his iPHONE
 2. User B is running xmpp client at his desktop
 3. User B sends message to A, but A's xmpp client is either not
 running or running in background.

At pt.1 you stated that A's xmpp client is running, so this condition
contradicts pt.1

 4. Server stores the message for later delivery.

This would happen if A's client is not connected. So I guess that
'running' does not necessary mean 'connected'.

 5. Server informs A by sending a message using apple push notification
 infrastructure.
 6. User A accepts the push and A's xmpp client connects to server and
 server delivery the message to A.

Ok. 'Running' definitely does not mean 'connected'.


Your goal would be best accomplished by hooking to offline storage
module, or using completely custom offline storage module, that sends
notification every time it stores a message offline for later delivery.