Home
MatriX vNext
MatriX XMPP SDK ▼
Forum
About us ▼
Contact
Not logged in.
·
Lost password
·
Register
Forum
Search
Members
Forum:
MatriX and XmppDotNet
how to send Add contact invitation?
AliVireTechnologies1
2013-06-14, 15:21
#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
var
rm
=
new
RosterManager
(
Model
.
Utility
.
xmppClient
)
;
var
pm
=
new
PresenceManager
(
Model
.
Utility
.
xmppClient
)
;
Jid jid
=
txtphone
.
Text
;
rm
.
Add
(
jid, txtname
.
Text
)
;
pm
.
Subscribe
(
jid
)
;
This post was edited on 2013-06-20, 08:56 by
Alex
.
Alex
2013-06-20, 08:58
#2
Member since Feb 2003 ·
4449
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:
Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys:
Special characters:
Forum:
MatriX and XmppDotNet