-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Sometimes the sound is not restored. #174
Comments
Hi @synstin OK I'll try to fix it in the next release. |
Hi @synstin Do you still experience this kind of issue in the latest releases ? |
I am experiencing the same issue. When I listen to YouTube live music, after the alarm music ends, the volume of the YouTube live music does not return to its original level. I have to close my app or reopen YouTube to restore it to normal. Additionally, if I use MX Player Pro or Solid Explorer to play music, the volume of the music playing does not decrease when the alarm goes off. My alarm version is 3.1.4, and the device is SM-A326BR/DS, Android 13. Update: |
Same things here, on 3.0.12 // 3.1.4 the sound is reduced until the app his killed, on Android. Thanks in advance |
Hi @pyjserv and @pbouttier I'm looking at the differences between versions 3.0.11 and 3.0.12 but I don't see nothing related to the system volume... |
I tested it 2-3 times on each version, and it happened every time. In 3.0.11 it seems to me that the app triggers a warning, java version 8 is used, maybe that's where it comes from? |
I tested my two Samsung devices with Android 13 and Android 11, and the issue persists in versions 3.0.12 and above. However, it works fine in versions 3.0.11 and below. |
In your tests, do you guys set the @pbouttier |
warning seen only with --profile, not on debug, not on release
I had the same problem on the core of my app, I switched to java 11 in build.gradle, like this
my settings are
I tested with a fixed value for the sound, instead of my user settings, and it made no difference. the audio is a 1s double bip. |
I set loopAudio to true.
Yes, I use Alarm.stop(id) to stop alarm. I think I found the part causing the issue. In AlarmPlugin.kt, fun onMethodCall(), label "stopAlarm", line 58 in version 3.0.12 change This restores the volume to normal after calling Alarm.stop(id). Update: Perhaps this issue is due to the service not being completely stopped. |
Hi guys, I think I found a quick fix, at least it worked for my Android 11 device. I just released a new version (3.1.5), please tell me if it works for you. What I did was just to make sure that the audio focus was abandoned when the AlarmService was destroyed. |
I have tested version 3.1.5, and it worked perfectly! Thank you very much for the fix! |
Nice ! I'm glad it works now and thank you so much for your help. |
Working fine, thanks :) |
Alarm plugin version
3.0.14
Describe the bug
When the alarm goes off, the music I have set as background music gets smaller and then doesn't come back.
For example, if I listen to it at volume 3 and when the break alarm goes off, it goes down to about 1 and then comes right back up, but sometimes it goes down to about 1 and then doesn't come back, even if I quit the app after that, it stays at 1 and I have to turn off the music app completely and turn it back on to get it back to the original volume.
Device info
SM-N960N - Android 10 (SDK 29)
The text was updated successfully, but these errors were encountered: