RocketChat / RocketChat/Rocket.Chat

attachement in push message is not shown...

Open
#6,113 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feat: notification
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin at the incoming webhook integration entry point and trace how attachment data is carried into desktop and iPhone push notification payloads. Reproduce the reported difference between a text-only payload and one with attachments, then verify that attachment content appears in both notification types.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api, backend, desktop, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.