meypod / al-azan

Privacy focused ad-free open-source muslim Adhan (islamic prayer times) and qibla app
https://meypod.github.io/al-azan/
GNU Affero General Public License v3.0
172 stars 24 forks source link

Azan seems to randomly end for no reason at all. #88

Closed Growebis closed 11 months ago

Growebis commented 1 year ago

Describe the bug

Sometimes, the azan ends randomly, this isn't consistent at all. Sometimes it ends at the beginning of the azan and sometimes in the middle of it. Sometimes the azan plays completely and nothing wrong happens. To Reproduce

  1. Wait for it to be prayer time
  2. either it randomly ends in the beginning or middle. Or it plays fine, Expected behavior

    For the azan to play completely.

Device Info :

App Version: F-Droid: Yes 1.16 I remember trying the latest pre release version (i think it was 1.17 rc13) and it also had the same issue

Additional context

Battery optimization is disabled

meypod commented 1 year ago

this sounds like a battery saving issue have you tried disabling battery saving for this app ? on some devices there's extra settings for this, watch out for that as well please check https://dontkillmyapp.com/sony to see if your device is properly configured

Growebis commented 1 year ago

have you tried disabling battery saving for this app ?

Yes

on some devices there's extra settings for this, watch out for that as well please check https://dontkillmyapp.com/sony to see if your device is properly configured

I will try to see if the azan plays with stamina mode on/off and see if that makes a difference.

Growebis commented 1 year ago

The azan still ends randomly even with stamina off.

meypod commented 1 year ago

there's two more solutions on that page, please check if those are available on your phone and try them as well (Adaptive battery & Power-saving feature)

Growebis commented 1 year ago

there's two more solutions on that page, please check if those are available on your phone and try them as well (Adaptive battery & Power-saving feature)

I dont have any of these .

Growebis commented 1 year ago

The last prayer application i used, which was Pillars, never had this issue ever. But maybe its because the azan is an alarm and not a notification? Because Pillars uses notification.

meypod commented 1 year ago

with notification we don't have control over what is played after the initial settings (there actually is a way but it's hacky way). so if pillars can change the audio from inside the app, they use the same technique as us. probably. but it shouldn't be the reason from what I understand what adhan do you use ? custom sound or default adhan ? for reference, can you install a third party alarm clock and set your custom adhan (if you use one) as the alarm sound and see if it plays till completion ? if possible, try both google's alarm clock and a less used one (to see if there's a whitelist built into the phone's os)

this can help a lot thank you

Growebis commented 1 year ago

what adhan do you use ? custom sound or default adhan ?

I use a custom azan.

for reference, can you install a third party alarm clock and set your custom adhan (if you use one) as the alarm sound and see if it plays till completion ? if possible, try both google's alarm clock and a less used one (to see if there's a whitelist built into the phone's os)

I will try this and see if similar behavior happens.

meypod commented 1 year ago

also try to see if default adhan has the same problem or not

meypod commented 1 year ago

Hi @Growebis wanted to see if you had time to test ?

Growebis commented 1 year ago

Sorry for replying late.

I didnt have time to test it since i was extremely busy but maybe in the next couple days i will test.

Growebis commented 1 year ago

The issue seems to have resolved itself, as it has been a couple days and the athan never ended randomly.

Growebis commented 1 year ago

The issue is back but i think i know the cause.

When the adhan was playing fine for a couple days, i had no alarm setup (using the default clock app) so the adhan always played fully. But now when i setup an alarm in the clock app the inconsistent behaviour is back. I guess thats a cause that im not sure how it would be solved.

meypod commented 1 year ago

hmm you mean you have an alarm, that fires like 1 minute after adhan ? and alarm starting causes adhan to stop ?

Growebis commented 1 year ago

hmm you mean you have an alarm, that fires like 1 minute after adhan ? and alarm starting causes adhan to stop ?

no, what i meant is basically if i had an alarm setup, doesnt matter if its close to the adhan (in terms of time) or if its far apart from the adhan. it would still randomly end. like the sheer presence of having an alarm can make the app randomly end or not.

meypod commented 1 year ago

Try enabling this in settings and see how it goes

Screenshot_2023-08-31-19-25-36-910_com github meypod al_azan-edit

Growebis commented 1 year ago

Sure i will try this and report the result in a day or two

Growebis commented 1 year ago

nothing changed it still ends randomly.

meypod commented 1 year ago

I'm sorry but this sounds like to be a device specific issue, so I don't think there's much i can do I have asked you to try anything that came into my mind I wish I could help you more

meypod commented 1 year ago

@Growebis can you test this please?

for reference, can you install a third party alarm clock and set your custom adhan (if you use one) as the alarm sound and see if it plays till completion ? if possible, try both google's alarm clock and a less used one (to see if there's a whitelist built into the phone's os)

also tell me if your custom adhan plays till completion when you play it in the settings using the play button

meypod commented 11 months ago

I'm sorry but without more info I can't work on this and keep this issue open