Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
Sean #1
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: Presence on Pocket PC
Hi,

I have ported the example mini client to pocket PC. Everything is OK except for the Presence Events. I never recieve any presence info from any contacts. Are these messages destroyed by the Pocket PC lib?

Thanks,

Sean.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi,

did you send your own presence after login to the server?
You get no presence if you dont send your own initial presence.
Would be cool if you would share your demo app with other users.

Alex
Avatar
Sean #3
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

Some further info I get the following xml
<iq xmlns="jabber:client"
type="result"
from="fred@netmindz.net/ag
sXMPP" id="agsXMpp_4"><query
xmlns="jabber:iq:roster"><item
jid="sean@netmindz.net"
subscription="from"
/></query></iq>

Am I missing something after the subscription="from"?

Thanks,

Sean.
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hi Sean,

when adding a roster Item you have also to subscribe to this person.
When adding a new contact you have to send 2 packages (RosterIQ and Subscription Request). And the other person that gest the Subscription request has to answer it (approve or deny). There are wrapper classes for easy access to this stuff in agsXMPP (PresenceManager and RosterManager).
Sample code is also in the MiniClient sample. Look in the AddContact Form and in the Presence handler in the Main Form.

Alex
Avatar
Sean #5
Member since Dec 2005 · 13 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

OK, what happens if the person sent you a subscription request previously? The Roster item sent a subscription request which was accepted in a previous session, do you still need to follow the process you describe?

Thanks,

Sean.
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No, if the roster is already on your contact list but without mutual subsription you only have to send the subscription request. The most existing clients offer this function in a context menu "subscribe" or "subscribe again".

When you add a roster that already exists its handled like as an roster update. So its no problem.

If a person didnt answer your subscription request for some reason the server should send the request again on each login of this person.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS