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

Personalised notification settings in groups are not working properly #10831

Closed
4 tasks done
error401de opened this issue Jan 27, 2021 · 25 comments
Closed
4 tasks done

Personalised notification settings in groups are not working properly #10831

error401de opened this issue Jan 27, 2021 · 25 comments
Assignees

Comments

@error401de
Copy link

Bug description

I'm using the German UI so I hope I translate the settings correctly.
"Personalised notifications" setting in groups are not working properly. "Vibration" is turned off in UI, still the phone vibrates when messages are coming in. The only alternative is to mute the full group bun in that case you won't receive any notifications.

Steps to reproduce

  • Open a group (i tested with a group of the new type)
  • Navigat to "Group Settings"
  • Navigate to "Personalised notification"
  • Activate them
  • Per default "Notification tone" is set to "Standard" and "Vibration" is turned off
  • Turn off display
  • Receive a message in that group
  • Phone still vibrates

Actual result: Phones vibrates
Expected result: It shouldn't

Screenshots

Device info

Device: Samsung Galaxy S9
Android version: 10
Signal version: 5.2.3

@fumiakiy
Copy link
Contributor

I was able to "kind of" reproduce the issue and I believe it's not a bug in Signal. But I might be looking at something different from what @error401de was seeing/feeling, in which case just ignore.

What I did:

I turned on the vibration in the group settings > custom notifications, then turned off the phone screen. When I received a message to the group, the phone vibrated in a standard pattern. So far so good.

I opened Signal, went to the same group settings > custom notifications and turned off the vibration this time. I turned off the phone screen again. When I received a message to the group again, the phone did vibrate, but in a different, more subtle way. This might be what @error401de is seeing/feeling. If it was not, apologies; ignore my comment here.

It turned out that I was able to turn off the subtle vibration by going to the Android settings > Accessibility > Vibration & haptic strength. My phone doesn't vibrate any more when I receive a message to the group after I turned off the vibration there.

My Device:

Essential PH-1
Android 10
Signal 5.3.6

@bluumb
Copy link

bluumb commented Jan 27, 2021

Hi @alan-signal,

I have the exact same issue as @error401de. Debuglogs are attached. I tested it with a group around 22:45 - 23:00 o'clock.
https://debuglogs.org/99182b2a33d57907efd05039fa6b34af3d4b4a53d9f7247f71566567f4ded753

@a-d-collins
Copy link

Quick disclaimer: I'm new to this codebase.

My, not yet tested, theory is that AbstractNotificationBuilder.setAlarms() is related to this behavior.

public void setAlarms(@Nullable Uri ringtone, RecipientDatabase.VibrateState vibrate) {

setAlarms() is responsible for setting the ringtone and vibration for a specific notification, and, in its current iteration, it does not seem to properly handle the case when vibration is disabled by the user in the group settings page.

From what I can tell, setAlarms() will set vibrations to the default when vibrations are:

  1. enabled by user in the group settings or
  2. set to default in the group settings.

However, there is no logic for expressly disabling vibrations. If the AbstractNotificationBuilder, or some related class in the notification pipeline, disabled vibrations by default, then the current logic would work fine.

I will test this to confirm my theory.

@alan-signal what are your thoughts?

@error401de
Copy link
Author

Hi @greyson-signal / @alan-signal,
is there any chance you could check @a-d-collins approach?
Thanks!

@cody-signal cody-signal self-assigned this Apr 13, 2021
@cody-signal
Copy link
Contributor

cody-signal commented Jun 4, 2021

Hope to have a fix for this in 5.14, thanks for your patience and sorry for the radio silence from our end.

edit: Will be in 5.14.1 beta coming soon.

@error401de
Copy link
Author

Hi @cody-signal,
currently running 5.14.5, issue still persists.

@error401de
Copy link
Author

@greyson-signal / @alan-signal any update on this?

@cody-signal
Copy link
Contributor

We pushed a follow up fix to this a few releases ago, is it still happening? If so, can you provide a fresh debug log?

@error401de
Copy link
Author

error401de commented Aug 12, 2021

@cody-signal I just rechecked and it's not even possible anymore to toggle the switch for vibration off.

  • Open a group
  • Open settings
  • Sounds & Notifications
  • Personalised notifications
  • Activate it
  • Vibration will be set to "on" automatically
  • Turn vibration off
  • Go back to previous screen
  • Open settings again
  • You will see vibration is turned on again

I was able to replicate this behaviour from 2 different phones (Galaxy S9 & S6)

@cody-signal
Copy link
Contributor

Thanks for the bump, thought this was fixed, but yeah, it's obviously not for the UI.

Does the notification still vibrate though? When I turn it on and then off for a group, and leave, I no longer get vibrates on the group.

@error401de
Copy link
Author

Oh, true, it's only the UI! Seems like after the actual fix the default setting was set to vibrate, which is why I still saw the behaviour. If i switch it off it actually doesn't vibrate, no matter what the UI says.

@error401de
Copy link
Author

@cody-signal / @alan-signal / @greyson-signal I just recognized the issue is fully back. "Vibration" toggle is off for some groups, still phone is vibrating on notifications.
I was able to reproduce it on my Samsung Galaxy S21 with Signal 5.27.13

@cody-signal
Copy link
Contributor

Please provide an updated debuglog.

@error401de
Copy link
Author

Thanks for following up @cody-signal ! Is there any possibility to send you the log without sharing it here publicly?

@cody-signal
Copy link
Contributor

You can email me at cody@signal.org

@error401de
Copy link
Author

Done, thank you so much!

@error401de
Copy link
Author

Hi @cody-signal,
did you already have a chance to look at this?
Thx!

@stale
Copy link

stale bot commented Mar 15, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the wontfix label Mar 15, 2022
@error401de
Copy link
Author

Yes, this is still relevant and I did not hear back from Signal.

@stale stale bot removed the wontfix label Mar 15, 2022
@stale
Copy link

stale bot commented May 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 14, 2022
@error401de
Copy link
Author

Still open, still no answer from @cody-signal to my logs.

@stale stale bot removed the wontfix label May 15, 2022
@alex-signal
Copy link
Contributor

There's a beta out now that should be directing Android 11/12 users to the device notification settings for a given conversation rather than using the in-app settings, which should resolve this issue.

@error401de
Copy link
Author

Hi @alex-signal,
thanks for the response! Can you estimate when it will be released for the stable channel?
Also: Is it possible to opt in and later out of the beta channel without reinstalling the app and therefore losing my message history?

@cody-signal
Copy link
Contributor

Yes, you can opt-in and then out of the beta, you'll still have the beta apk until a later prod version is pushed. As in, beta is 5.38.2, so you can temporarily switch to that, but you won't be able to then switch right back to current prod, you'll have to wait until some version of 5.38.2+ is promoted to production to be as if you never left the stable channel.

@error401de
Copy link
Author

It's working in the beta, thanks a lot!

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

No branches or pull requests

7 participants