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

Does not notify when sending a message to a group. #472

Open
2 tasks done
dxbit opened this issue Feb 2, 2024 · 9 comments
Open
2 tasks done

Does not notify when sending a message to a group. #472

dxbit opened this issue Feb 2, 2024 · 9 comments

Comments

@dxbit
Copy link

dxbit commented Feb 2, 2024

The problem

When you send a message to a phone number, there are notifications.

Are you using the latest released version?

  • Yes

Have you read the troubleshooting page?

  • Yes

What type of installation are you running?

signal-cli-rest-api Docker Container

In which mode are you using the docker container?

Native Mode

What's the architecture of your host system?

x86-64

Additional information

No response

@bbernhard
Copy link
Owner

Can you please elaborate a bit more what you did and what the problem is.

@dxbit
Copy link
Author

dxbit commented Feb 4, 2024

I send to endpoint /v2/send a json data:
{"number": "+XXXXXXXXXXX","recipients": ["group.STBnUkdSQmo5RGp0QWlNelFnNkNOVzJnWktLMzh1NmZVbC95K0FzbENsTDS="],"message": "My message."}

A message arrives in the group, but a notification about a new message does not appear on the phone.

@bartekmarczyk6
Copy link

I have the same issue as dxbit.

@ySteini
Copy link

ySteini commented Mar 24, 2024

Are there any Updates on this?

@bbernhard
Copy link
Owner

To me that sounds more like a client issue. If sending via the REST API works fine, but the message doesn't generate a notification on the phone I'd say the client settings are fo blame here.

@ySteini
Copy link

ySteini commented Mar 24, 2024

The Problem only exists if I choose to send the message to a group chat but if I send it to my own number (Note to Self) it does send a Notification

@bbernhard
Copy link
Owner

Afaik there are also group specific notification settings, maybe the notifications are turned off there

@ySteini
Copy link

ySteini commented Mar 24, 2024

They're not, but I think I don't get a Notification because the message is sent by my account (the textbubble is blue) if sent to a group, but if it's sent to my phone number which is Note to Self the message shows up as a different one (the textbubble is grey) and signal doesn't notify me if it's my own.

@matthiasdg
Copy link

You mean you're sending a message to a group with the sender's number in, right? You indeed get no notification in that case. This is because there are sync messages sent as well. E.g., if you send a message from your phone in a group, this is synced to your other devices linked to the same number, hence no notifications.

Some related issues:
AsamK/signal-cli#1087, AsamK/signal-cli#373 (comment) (which fixed it for sending messages to only yourself, not in group). It could be that it will be solved by the recent commit Turasa/libsignal-service-java@8a91b2e, which is not yet in signal-cli, though it could also be that this does not work for a named group and only for a list of recipients (not that familiar with the signal code).

What I did was commenting all sendMessage calls with a syncMessageContent arg in SignalServiceMessageSender.java of Turasa/libsignal-service-java, publishing that build to my local maven repo, then building signal-cli with that, and then copying the distTar to signal-cli-rest-api, modifying the Dockerfile that it doesn't download signal-cli but just copies this tar.
With this I get notifications. (Docker image is published as matthiasdg/signal-cli-rest:latest or matthiasdg/signal-cli-rest:0.82-pre2; corresponding to the same tag here. It's only arm64; crossbuilding on my macbook with the golang stuff failed and I run it on a raspberry pi anyway. The GraalVM thing will probably not work; I only tested json-rpc).

Note that my only use case is sending messages to a group containing some household members and myself, so it could be that removing all these sync messages is not a proper solution 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants