I need to send a Teams message to user/channel from the java service. These are notifications about events that happen in the application (e.g. when someone sells a product, they should receive a message on the teams that the product has been sold). I have already configured Microsoft Graph API for my application in Azure but as far as I know it is not possible to send message directly to users using "Application" permissions. (DOCS)
Is it any walk around for this restriction? Can I use a newly created account specifically for my purposes to authorize from the Java service in graph API and then sending messages to users?
I also found information about bots and sending proactive notifications to users. Is it possible to use it in my case as a proxy between java app and Teams user?
If I have multiple customers from multiple Microsoft organizations and I want to provide them my bot with proactive notification feature How should I deploy it? Does each client have to provide me an access to the Microsoft AD with application permissions and add my bot to his Bot Service? Or it is possible to deploy the bot only in my environment and make it available to my clients somehow?
What you're trying to do is called proactive messaging and you can read about it here: https://learn.microsoft.com/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages
You can deploy your bot wherever you like so long as you make sure the Teams app is published. You can make your bot available to everyone by publishing to the Teams app store, also called AppSource: https://learn.microsoft.com/microsoftteams/platform/concepts/deploy-and-publish/appsource/publish
If you don't want the app to be available to everyone, there may be a way to publish it to individual app catalogs: https://learn.microsoft.com/MicrosoftTeams/manage-apps
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.
I've been searching over the web but I can't seem to find some straight answer.
I've got an application developed and now I need to add it notifications. My issue is that I need each device to be unique and send each one of them a different notification. (I don't mean ONE UNIQUE notification) but I mean to send some users a notification and others don't.
How can this be done?
As a part of the GCM infrastructure, you will need to have your own web application that will allow individual instances of your app to register. When this happens, your Android application will pass to the web application a registration ID along with any additional information that you can use to identify the device. Once you have this information stored, you can pick and choose which device should receive your notification.
See: Architectural Overview section in the http://developer.android.com/google/gcm/gcm.html
I've a site that performs a lot of processings asynchronously, and in certain moments, should to send private messages to users that previously have installed the Facebook app of my site.
Is it possible to send messages from server-side (Java) directly to these users?
Thanks.
This is not possible, if it was, imagine the amount of spam Facebook users would be receiving.
Alternatively, you can access their emails (with the appropriate permission), and use that instead.
I am developing Android Application for Chat between two users as private session.
Android application would be Android 2.0 and above . If any user wants to chat then he can enter any email to chat and session between two users will be private and can able to store in database.
Other user should not be able to watch the private sesion.
if any one answer about android application where it will be connected to web server (php) then good for me to understand .
So if any one known the develpoment flow please suggest here .
Please don't suggest about IRC Chat where all user combined in same open template.
You could use an XMPP server and use for instance asmack library for android.
Tutorials about the android application: http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/
There are several different servers out there. For instance OpenFire. http://www.igniterealtime.org/projects/openfire/
If sounds like what you want is an XMPP server with client to client encryption.
Here are a list of XMPP server options: http://xmpp.org/xmpp-software/servers/
Here is a discussion on various XMPP libraries to use with Android: Android and XMPP: Currently available solutions
As for the encryption, it looks like you want to mimic what OTR does (for pidgin). The description of how the protocol works is posted here: http://www.cypherpunks.ca/otr/Protocol-v2-3.1.0.html
You can also grab their source code from here: http://www.cypherpunks.ca/otr/index.php#downloads (warning: code is written in C)
This is link for Chat application for Android for private session and best suitable for users who want to use web with android . where any user can be signup or signin then get friends list with access of database to android and easily send messages to friends in a private session can chat unlimted . this feature more include like sending request and accepting/rejecting request .
You can do this in node.js very easily and if you need already implemented code then you can use this https://github.com/heroic/node-private-chat.
If you find it insufficient then you can easily extend it with very minimal efforts and don't use php for it. It isn't design for these type of work. Node is best suitable for it. Just run above code and connect to it with your android application.
Best
Deepak
I'm in the process of developing a web application (java + jsp) that can send notifications to users. The user can subscribe to multiple events generated by the application and can choose to receive the messages associated with those events via multiple channels (email, sms, growl?, messenger); perhaps different messages through different channels; perhaps a daily message digest. Everything must be configurable by the user. Is there some framework that deals with this?
Rmarimon, check out Boomerang Notification Framework from Fuel9. With some basic SQL skills you can quickly develop dynamic notifications (email, twitter, fax etc). Good luck!
/M
Take a look at Amazon Simple Notification Service (Amazon SNS). It was just released (in beta). Looks pretty cool.
Agustin sends to email and SMS via twitter. Probably not exactly what you're after, but it might work.
There's also the Sun Java System Instant Messaging, which is not free.