-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Mark as unread / Send (push) notification to phone #1087
Comments
That should already work, which signal-cli version are you using? |
I'm using |
Alright, just checked it works for the Any chance to get this |
That would indeed work, I made a small test branch here: master...notify-self-group But I'm not sure what the interface should look like. The default behavior of For the new notification behavior it would either need a new group flag with self notification (like |
Well in my opinion the cleanest way would indeed be to introduce a |
Got a similar use case; I use https://github.com/bbernhard/signal-cli-rest-api (built on top of signal-cli) to send messages from my own number to a signal group composed of the housemates (including myself) when somebody presses the doorbell button, since there are some "deaf spots" throughout the house. Had first tested with messages to myself, which worked fine (=resulted in a notification). Was surprised to find out notifications did no longer work with a group. Created a build which included the changes mentioned above, but that resulted in the message sent through signal-cli being displayed twice; once on the sender and once on the receiver side, where it was already read and still no notification was sent 😞 . Then looked at #373 (comment) and also built libsignal-service-java so sync messages are also not sent in this case (actually they're never sent now; since this is my only use case I didn't bother to check when they are useful - docker image: matthiasdg/signal-cli-rest:0.11.4-bis). This results in notifications + the message only appears on the sender side on my phone 🎉 A more general approach will require some more thought... |
I don't want to put any pressure on this (it's our all free time after all), but is this feature planned or is this stale? Just from a users POV, it would be nice to have a general flag Any objections with this way of including this feature to the commandline- and dbus-interfaces? |
It's still planned, just haven't decided on an API yet... For dbus it will be a bit more difficult, as adding a parameter to the send method is a breaking change. |
Alright, nice to hear this is still planned 👍 I'm not too experienced with the dbus, but looking at e.g. Oh and I see where you're already going with the
What exactly are you referring to? No concept for adding a map parameter to the function call? |
Sorry for being that late after your commit, but does that commit really fix this issue? For me the only thing that changed is that now I never get notifications when sending via dbus. So do I get it correctly that currently there is no way to send a message which triggers a notification for oneself via the dbus interface? Am I doing something wrong here? [pi@rpi ~]0$ dbus-send --system --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.sendNoteToSelfMessage string:MessageText array:string:
method return time=1710984040.246621 sender=:1.3959 -> destination=:1.4056 serial=480 reply_serial=2
int64 1710984039937
[pi@rpi ~]0$ dbus-send --system --type=method_call --print-reply --dest="org.asamk.Signal" /org/asamk/Signal org.asamk.Signal.sendMessage string:MessageText array:string: string:<phoneNr>
method return time=1710984050.816249 sender=:1.3959 -> destination=:1.4057 serial=481 reply_serial=2
int64 1710984049983 Dbus introspection also doesn't list a new parameter:
Running version |
Hi,
I want to use signal-cli to send notifications to my smartphone. The problem I've got is that I registered the signal-cli instance on my RaspberryPi as additional device for my normal phone number. Therefore I do not get any notifications when sending messages since they are already marked as read.
Do you have any workaround for this (apart from using another phone number for the RaspberryPi instance).
I already thought if it is possible to at least mark the conversation as unread (wouldn't send a push notification but at least it is visible that there was a new message when opening signal manually), but I see no way this is possible up to now. Am I missing this option and if not, any plans implementing it?
The text was updated successfully, but these errors were encountered: