I created a slack app and add the following scopes to it:
But it still shows "Sending messages to this app has been turned off." in the chat window.
The app configuration page has been updated recently, so I can't try the method such as "go to App Home and set the checkbox for 'Allow users to send Slash commands and messages from the messages tab'".
Actually the settings I made for this app is the same with another app which I created previously and runs normally.
Does anybody have suggestions for this problem? It confuses me a lot, thanks in advance.
Add:
features:
app_home:
home_tab_enabled: false
messages_tab_enabled: true
messages_tab_read_only_enabled: false
to the app Manifest.
Related
We have a published app in the Teams App Store.
Our app supports task module.
It worked just fine but about a month ago we started to receive reports from our costumers that when they are trying to open a task module, teams app just freezes.
This is how i understand task module requests work, in 4 steps:
1. User clicks on the button with data {"msteams": {"type": "task/fetch"}}`,
2. Teams sends request with this data to the bot.
3. Bot handles the data.
4. Bot replies with the appropriate url to render.
So we tested what happens when we click on the task/fetch button.
First of all we saw an error in the teams console:
TaskModuleLaunchService: launchTaskModuleByInvoke failed: "could not find app definition for app 00000000-0000-0000-0000-000000000000" where *00000000-0000-0000-0000-000000000000* is out appID.
And we don't receive any requests from the teams on the bot's side. So basically we have an issue on the step #1.
Unfortunately, we couldn't reproduce this on our devices, using the same card with the exact same button.
How can we fix this? Any help would be appreciated.
Thanks in advance.
I am working on a slack app that can be installed in any channel. It is possible or is there any slack method that allows you to open the slack app home tab from the channel. I mean a method that can navigate the user from the channel to the slack app home-tab
Send a slack message to users with #appname. For example "Click here to open the #ACME Dashboard" (assuming "ACME Dashboard" is the name of your app). #ACME Dashboard will turn into a clickable link that jumps to the app home page. It'll also add the app for users that haven't already added the app.
At least, this worked for me in limited testing with myself and one other person, so I hope it works for you. I haven't tried to figure it out, but I'm sure there's a way to send the '#app name' as part of a message from the API.
I created a Slack bot (app) and I'm not able to send direct messages to it even though I'm pretty sure I have all the permissions enabled.
The direct message window shows Sending messages to this app has been turned off. in the input field.
Am I missing some permissions?
Go to your App Settings page and go to App Home and set the checkbox for "Allow users to send Slash commands and messages from the messages tab"
https://github.com/MicrosoftDocs/bot-docs/issues/2077#issuecomment-843960695
At the bottom you will see the option
Adding following scope worked for me:
1. mpim:write -> Start group direct messages with people
2. im:write -> Start direct messages with people
I'm building a Slack app that works across workspaces. I'm using the app_uninstalled event to update my database when a workspace uninstalls the app, but I can't figure out how to handle when a user removes the bot authorization from the app Settings page.
When this happens, the app is effectively uninstalled, but I need my app to get notified when this happens. I've tried the tokens_revoked event, but it's not being sent.
The short course: I'd like my app to get notified when the trash can icon (in the image down there) is clicked. Thank you!
As far as I've worked with the slack events APIs, tokens_revoked is the method which is triggered when a user clicks the trash-bin you are talking about and confirms the action. I've just confirmed it a few minutes ago as I'm also facing a similar (not same) issue.
I downloaded the sample code on NSSharingService from https://developer.apple.com/library/mac/samplecode/SharingServices/Listings/Sharing_APLAppDelegate_m.html. The code is not working as i am not able to launch mail app from this. On debugging i found that [NSSharingService sharingServiceNamed:NSSharingServiceNameComposeEmail] is always returning nil. Can someone please guide me if there is any system set up required to launch this successfully.
I had the same issue with Facebook service (NSSharingServiceNamePostOnFacebook).
It is nil when "System Preferences -> Internet Accounts -> Facebook -> Share Menu" is turned off.
A sheet appeared first time and asked to add an account, I added one and just disabled that option and had to debug a code for about an hour.
As for your issue with Mail, it should be something similar, something with Mail accounts configuration. I tried myself to disable all Mail accounts, but it picked my Gmail one, so I was not able to reproduce it. Also I have no ability yet to test with a non-configured Mail.
Hope this will help you to go in the right direction.