I'm trying to write an OpenFire plugin to support Apple Push Notifications. My plan is that I want the client (iOS app) to send its token to my plugin servlet once the user logs in.
So far all I have seen people doing is add servlets for the Admin console, but my servlet is not for the admin console, it's supposed to be for my actual chat client. I just want the client to send me the token so that I can store it mapped to the logged in user, so keep in mind that I need to be able to get the currently logged in username. Does anyone know how to go about that? I'm new to OpenFire so please be patient. Thanks.
After doing tons of research, it so happens that Servlets is not what I was supposed to use at all. Instead, for this kind of scenario I should be using IQ Packets, which are part of the XMPP standard. Everything revolves around IQHandler: http://www.igniterealtime.org/builds/openfire/docs/3.8.2/documentation/javadoc/org/jivesoftware/openfire/handler/IQHandler.html
Related
I need help with Microsoft teams integration. I have an system from which I want to send chat message to a particular user in MS teams upon an event in my system. How do I go about implementing this. The teams graph api documentation is not looking clear to me. Like it has body but no head and tail. I'm confused on where to start for this. I understand I need to use Graph API's create/send chat api to send messages but it says I need to configure a delegate user for this? How do I send messages on behalf of a external system? Can I can use Teams Java sdk based application? Or I need to create a bot? But I think it's for one-2-one conversation is it? I only want to send a one way message from external system to user. Someone with experience in this pls help me on a good approach for this.
All I want is to send chat message from external system to a user in teams.
You cannot use Graph API in this scenario if you want it on behalf of External system. The API is only available when you are having delegated permission.
Other option would be to create a Notification only bot. In this case please keep in mind that the bot needs to be installed in Teams of user you want to send notification. You can use this graph API to install bot in user's Teams- Install app for User.
Once it is installed you need to have user's Conversation.Id and ServiceUrl (maybe store it in database for all users). When you are done with everything you can send Proactive messages.
So, my issue is that I can't find any information about how SMF (2.0.x) login requests work. I want to have a third party application which would do a test login to make sure the username and password are connected to an user account, so it can then be used with other features of the app. The app is a LibGDX app, which is for PC use. However I do not know how to do a login request to SMF and I dont know what it sends back either. If you know any documentation or know something yourself, please let me know!
I was able to figure out this by using this tutorial: http://www.mkyong.com/java/how-to-automate-login-a-website-java-example
Hi guys maybe my question is easy but I'm noob in android :C, I'm building a chat app in android and I need add new users (clients) to my server openfire xmpp, but I need do it automatically so, there is any way to do this? I mean the users will open the app and the first screen will be the sing up screen, my question here is how can I do that?
You should check the openfire plugins concept. The openfire plugins have capabilities to extend the functionality of the openfire server.
Now, create an openfire plugin with a servlet that can take requests from your android application. Basically the servlet has to take the username, password, domain...so forth and talk to openfire.
Upon clicking the signup button, take the information from UI and invoke the openfire plugin servlet. That servlet can read your information and talk to openfire, create an account and respond back with status.
Use the status information information to present the status on User Interface.
I'm trying to develop an android app which needs to fetch information from a servlet hosted in my Java EE application server.
To access this servlet, I need to be first authenticated with the Application server. I searched the web to get information on how exactly this works. During authentication how dows the android app store the cookie, and then how does it transfers the cookie to the server for every request?
I got some bits and pieces of information about HttpClient. I'm not sure if this is the correct one which I should be using. It will be a great help if someone could guide me. If there are any documents available please share with me.
Maybe the HttpUrlConnection documentation page is what you are looking for?
I am assuming this is native app, if so, first you need to authenticate and get the cookie. It would be your responsibility to store the cookie some where and pass it in sussequent http calls. If it is not native, I am not sure how it works.
Is it possible to send Facebook Messages (NOT on their wall, but a "Message") to friends using Spring Social?
If yes, which API do I use? If there is no such support in Spring Social, what's the best way to do so from a Java application?
The best way out that I could think of is to send an email at the ID : {facebook-id}#facebook.com, as it ultimately sends a Facebook message to the user.
For what I know, Facebook doesn't allow to send messages (and also asking friendship) with its API. So I think that you can't send messages to Facebook in a clean way. What you can do is make a bot that navigate the page on the server side and click buttons without user interaction. But I think that it's not so legal...
I would take a look at this site
http://www.springsource.org/
This website has all the information you need to get started with SpringSource. Here's a link to their forums
http://forum.springsource.org/index.php