Not logged in. · Lost password · Register
Forum: MatriX RSS
Kelsin #1
User title: Kelsin
Member since Nov 2011 · 21 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to do Add friend with subscriptions is both
     now i used this code to add friend,but this subscriptions is none.
           var rm = new RosterManager(MainPage.xmppClient);
            var pm = new PresenceManager(MainPage.xmppClient);
            Jid jid = txtFriend.Text.Trim() + "@XXXXX";         
            string s=txtNickname.Text.Trim();
     now how to do this subscriptions is both ? and i used this code the contact list is roster two friends,why this?

Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
both sides must send a subscroption request with pm.Subscribe. And both sides must reply to this request with pm.ApproveSubscriptionRequest. Then both sides have a subscription of both which is called a mutual subscription in XMPP.

This is also described in the manual here in detail:…

Please study the manual and examples before asking here in the forums.

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: MatriX RSS