Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack Mobile Notification Preview shows "Content cannot be displayed" #199

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

ctrl-freak
Copy link

According to this StackOverflow question:

https://stackoverflow.com/questions/56317962/message-notifications-produce-this-content-cant-be-displayed

The solution is to add a text property to the root JSON object sent in the POST.

I haven't set up the build environment to test this, I've only tested POSTing the JSON manually which works.

It may be this was done as plain_text because some errors contain what looks like markdown formatting
@ctrl-freak ctrl-freak marked this pull request as ready for review January 4, 2023 01:55
@adamboutcher adamboutcher added Improvement An Improvement of an already implemented feature Notifier labels Jan 7, 2023
@adamboutcher
Copy link
Collaborator

Thanks!

@ctrl-freak
Copy link
Author

I think a recent Slack app update may have rendered this pull request moot, as they seem to be able to display the message content with some formatting and emojis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement An Improvement of an already implemented feature Notifier
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants