RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.48k stars 10.54k forks source link

attachement in push message is not shown... #6113

Open iAmShorty opened 7 years ago

iAmShorty commented 7 years ago

Rocket.Chat Version: 0.52.0 Running Instances: 1 DB Replicaset OpLog: Node Version: 4.5.0 - x64

problem: i've setup some incoming webhook integrations for nagios to post to an #alert channel. the alerts are posted to the channel, but the attachement is not shown in desktop notification and push message on iphone.


this will show correct information in push notification on iphone and in desktop notifications, submitted via post to the server with the following vars data = {"text": message, "channel": channel, "username": bot_name, "icon_emoji": emoji}

in windows app bildschirmfoto 2017-02-20 um 22 26 33

browser notification bildschirmfoto 2017-02-20 um 22 37 01

ios notification 2


the following data will not show up in desktop notifications and push messages. submitted via post with some more vars attachment = { "fallback": plaintext, "color": colour, "text": message, "mrkdwn_in": ["text"]} `

data = {"text": message, "channel": channel, "username": bot_name, "attachments": [attachment], "icon_emoji": emoji}

`

in windows app bildschirmfoto 2017-02-20 um 22 26 43

browser notification bildschirmfoto 2017-02-20 um 22 35 51

ios notification 1


it will not show if attachement is set. is there a way to show up the notifications when attachement is set in incoming webhook integrations that are posted to the server?

LogiEx7 commented 5 years ago

Do you have a tutorial to receive Centreon notifications in RocketChat?