CCExtractor / ultimate_alarm_clock

GNU General Public License v2.0
68 stars 124 forks source link

Bug: App functionality affected on Huawei devices due to lack of GMS #503

Open Detective-Khalifah opened 6 months ago

Detective-Khalifah commented 6 months ago

Description

Issue

I have noticed that the Ultimate Alarm Clock II app has several functionality issues on my Huawei nova Y70. These issues include:

  1. The alarm not ringing.
  2. The (countdown) timer reaching zero (0) silently.
  3. A new alarm updating previously set alarm.

How to recreate:

  1. Alarm not ringing:

    Open Ultimate Alarm Clock; tap the Floating Action Button (FAB) on Alarm screen to set a new alarm; set the time for new alarm; save the alarm.

  2. Timer reaching 0 silently:

    Open Ultimate Alarm Clock; tap on the Timer (Bottom Navigation Bar) menu; set the timer by scrolling clock hands or by typing the time; tap on the 'play' icon.

  3. A new alarm updating previously set alarm.

    (I suspect it might be a prerequisite that the Ultimate Alarm Clock app has an active alarm that has not rung and said alarm is past the set time). Click on FAB to set a new alarm

Expected Outcomes:

I suspect these issues might be due to the lack of Google Mobile Services (GMS) on Huawei devices, which could be causing compatibility problems. This issue affects not just the alarm feature, but the overall functionality of the app. I believe it's important to investigate this further to ensure the app works correctly on all devices, including those without GMS.

Screenshots

  1. Alarm not ringing:

https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/4dd4dddf-0210-488d-a413-b65917a42b01

  1. Timer reaches 0 without ringing:

https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/f027daf2-3e18-419c-aec7-693d0e9c7e4c

https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/a7c2bac4-c190-4235-9f79-10a86d26e7b6

  1. A new alarm updating previously set alarm:

https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/ca8f41b9-5c41-4578-ae22-61c1a4ab5604

MarkisDev commented 6 months ago

Some devices from specific manufacturers need additional permissions, could you please recheck if that is what is causing this? I haven't seen too many of this and haven't been able to replicate it on my device.

Detective-Khalifah commented 6 months ago

Some devices from specific manufacturers need additional permissions, could you please recheck if that is what is causing this? I haven't seen too many of this and haven't been able to replicate it on my device.

What device are you using? By the way, the timer does not ring on my Motorola (motoe13) either. Could it be a missing feature?

I will research the problem. Maybe we will get to publish the app on Huawei App Gallery too.

MarkisDev commented 6 months ago

The app works fine on my OnePlus 7t Pro. But I've seen some Mi devices needing an extra permission to allow the alarm to ring.

Detective-Khalifah commented 6 months ago

I've got an alarm that rings every day at 1911 hrs, and another that rings whenever I start the device -- both are not in the list of alarms, for me to deactivate or delete. Also, since there isn't a persistent notification to stop the alarm from, I have to close the app from Recent Apps; Force stop should work too; reason for these alternative methods of stopping the alarm is that the app only displays an error screen, instead of the alarm window with Stop/Snooze options.

https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/2dbbd98c-c575-455b-898f-892404880e4d

https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/843d5398-692d-4e40-8f8d-e324dde35019

Screenshot_20240312_195907_com android keyguard

MarkisDev commented 5 months ago

@Detective-Khalifah Please create a new issue for the alarms ringing whenever phone restarts - this has been observed and is quite annoying. It has to do with the way we've setup the BroadcastReceiver on Android. On restart, we should either reschedule the alarms or turn it off depending on the scenario. Thanks for the comphrensive testing!

I get your point with it being annoying to close, it was meant to be like that. But a persistent notification when the alarm is ringing, would actually be a good idea. You can make another issue for that as well.

Detective-Khalifah commented 5 months ago

Sure. I also saw an unmerged issue last week on Timer not ringing.

Detective-Khalifah commented 5 months ago

https://github.com/CCExtractor/ultimate_alarm_clock/issues/548