-
Re: Smack (Instant Messenger): How to add myself to another person's contact list
smack@jive Jul 17, 2014 5:43 AM (in response to smack@jive)1 person found this helpfulUpdate: I've being running Spark on several computers, and I noticed something. I found out that when I manually added someone (on computer A) to a contact list, the person being added (on computer B) gets a popup window asking do you want to add this person to your contact list (on computer B). Second, after the person (on computer B) accepts that contact list request by pressing a button, I (the requester on computer A) get an identical popup window asking if I want to add the person to my contact list (on computer A).
So, what this update probably means is I think I have to simulate the above handshake between two computers in code. In simple terms I guess, I have to come up with code to send some type of request (on computer A) and then write code to always accept the request (on computer B). The specifics of how to do this escapes me.
I tried the following code, but it did not seem to work at all:
Roster.setDefaultSubscriptionMode(Roster.SubscriptionMode.accept_all);
Question: Can someone either supply me with the outlined two correct code sequences and the steps required, provide better code, or at least unconfuse me.
Again, I want to be able to add people to Spark contact lists using jivesoftware code, so that I can send a file to them. Ideally, I'd like to do all this transparently so that there is minimal interaction between users pressing buttons.
Currently, I have to use a Spark submenu options to do what I outlined in the first paragraph, above. This is required every time I start Spark and can become a hardship if it's required to do everyday. My only alternative to finding the code required is to never exit the Spark application and leave the person logged into the computer forever. This seems unreasonable.
Thank you,
-
Re: Smack (Instant Messenger): How to add myself to another person's contact list
it2000 Jul 17, 2014 6:06 AM (in response to smack@jive)Ignite Realtime: Home is likely the community where you want to ask Smack and Spark related questions.
XEP-0162: Best Practices for Roster and Subscription Management may also be interesting.
-
Re: Smack (Instant Messenger): How to add myself to another person's contact list
smack@jive Jul 17, 2014 7:20 AM (in response to it2000)1 person found this helpfulI've posted on Ignite Realtime before. But, they weren't useful at all. They tell me they don't have experienced developers of Spark.
-
Re: Smack (Instant Messenger): How to add myself to another person's contact list
Ryan Rutan Jul 23, 2014 7:31 AM (in response to smack@jive)Christopher, apologies but the developer base in this community that knows those technologies is very small (as they are not Jive technologies official products anymore). LG is correct that your best bet would be to try the ignite realtime community. =\
-
-
-
Re: Smack (Instant Messenger): How to add myself to another person's contact list
smack@jive Jul 23, 2014 9:17 AM (in response to smack@jive)Page 4 of the below PDF explains what I want to achieve in code.
http://www.csueastbay.edu/its/training/im/Spark_User_Guide.pdf
-