mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Launching mlem switches volume controls to Alarm+Notification volume

Open arader opened this issue 2 years ago • 9 comments

Describe the bug On my iPhone, (iOS 16.6.1, iPhone 11 Pro Max) I have my sound settings configured as so:

  1. Settings -> Sounds & Haptics -> Ringtone And Alert Volume: a. Volume level: max b. Change With Buttons: disabled

This makes it so that my alarm and ringtone volume is "locked" at maximum volume. Changing the volume with the buttons or through the Control Center (swipe down from top right corner of the phone) should only affect the volume of the speaker (music, game sounds, videos, etc).

I've noticed however, that after launching mlem, changing the volume, at least through Control Center, changes the Alarm & Ringtone volume instead.

Expected Behavior My alarm and ringtone volume should not be changed when I adjust the volume

Actual Behavior After launching mlem, if I swipe into Control Center and say, drop the volume down to zero, my alarms and ringtones are now muted!

To Reproduce This doesn't appear to be 100% reproducible, but what I've seen:

  1. Force quit mlem if it's running
  2. Configure iOS so that the ringtone volume is 100% and that the buttons do not change the ringtone volume
  3. Completely mute the volume of music/video/games on your phone by holding down the volume down button
  4. Swipe down from the top to open Control Center, confirm that the volume bar is at 0%
  5. Now launch mlem
  6. Swipe down from the top to open Control Center again and the volume bar will be at 100%
  7. Adjust that volume bar so it's at 0%
  8. Now go to Settings -> Sounds & Haptics and you'll see that the ringtone volume is at 0%

Note: I reproduced this several times in a row this morning but now that I'm typing this up it's not reproducing the behavior. My guess is that this might be related to content that's rendered by the app? or perhaps this is somehow a bug in iOS itself? I will say that I've never had this problem until I installed mlem, so it at least seems to be triggered by something the app is doing.

Mlem Information: Version: 1.0.2, Build: 687

Additional Context I'll update this issue if I can find a reliable way to reproduce it 100% of the time

arader avatar Sep 19 '23 18:09 arader

Update: I'm able to repro it 100% now, it appears to be most related to whether or not mlem was already running. If I force quit mlem, wait a minute, then relaunch mlem the issue occurs. If I just launch mlem and it had already been running, it doesn't reproduce the issue.

so maybe there's something in the "cold start" path that's triggering this behavior?

arader avatar Sep 20 '23 19:09 arader

Upgraded my phone to 17.0.1 and the issue still reports. Also, at one point my lemmy instance was down for maintenance which meant my timeline was empty and it still happened, so it appears unrelated to the content in your feed and is just based on cold launch of the app

arader avatar Sep 27 '23 14:09 arader

Update: still reproduces 100% of the time on a new iPhone.

iPhone 15 Pro Max iOS 17.1.2 Mlem 1.1.1

arader avatar Dec 09 '23 05:12 arader

Yep, I can repro this… very strange.

Sjmarf avatar Dec 09 '23 07:12 Sjmarf

This is currently (accidentally) fixed on our 2.0 branch. Since we struggled to find the cause of this in 1.0, we should check whether this bug occurs after every couple of PRs or so. It's possible that there's something in 1.0 that's causing this that we just haven't added to 2.0 yet.

Sjmarf avatar May 24 '24 14:05 Sjmarf

It's definitely something to do with the initial launch. After reproducing the behavior, switching apps and navigating back to Mlem shows the device volume correctly.

EricBAndrews avatar May 24 '24 15:05 EricBAndrews

This is back in v2.0 as of this PR.

Sjmarf avatar Jul 01 '24 18:07 Sjmarf

Looks like this is still a thing, as reported here

Sjmarf avatar Aug 30 '24 11:08 Sjmarf

I can't reproduce this in the same way that I did before 🤔

Sjmarf avatar Sep 07 '24 19:09 Sjmarf

iOS18.0 to iOS18.2, iPhone 15 Pro, the stable Mlem App from App Store. All those months, after the last update from App Store, the typing sound inside the App is extremely loud, while if I switch out of the app to type, the sound level is normal.

glamoroussky avatar Jan 04 '25 03:01 glamoroussky

Can't repro this behavior on 2.0

EricBAndrews avatar Feb 06 '25 19:02 EricBAndrews