Not logged in. · Lost password · Register
Forum: MatriX RSS
AliVireTechnologies1 #1
Member since Jun 2013 · 58 posts
Group memberships: Members
Show profile · Link to this post
Subject: how to send Add contact invitation?
I am using this following code for adding contact, and i want that user will receive invitation message so that user can accept or deny

  1. var rm = new RosterManager(Model.Utility.xmppClient);
  2. var pm = new PresenceManager(Model.Utility.xmppClient);
  3. Jid jid = txtphone.Text;
  4. rm.Add(jid, txtname.Text);
  5. pm.Subscribe(jid);
This post was edited on 2013-06-20, 08:56 by Alex.
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this code is correct. I see no problem there.
Please look also in the MiniClient example of the desktop version of MatriX. There are examples for add contacts, accept subscriptions etc...
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