ultimate_alarm_clock icon indicating copy to clipboard operation
ultimate_alarm_clock copied to clipboard

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

Open Detective-Khalifah opened this issue 1 year ago • 7 comments

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.

  1. 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.

  1. 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:

  • [ ] An active alarm should ring at the set time.
  • [ ] The (countdown) timer should ring when it reaches 0.
  • [ ] Unless a previously set alarm is clicked, setting an alarm using the '+' FAB (in the 'Alarm' Bottom Navigation Bar menu/screen should add a new, distinct alarm; this comes with it's peculiarities, such as disabling a user from setting an alarm with exact parameters as a previously set alarm.

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

Detective-Khalifah avatar Mar 07 '24 14:03 Detective-Khalifah

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.

MarkisDev avatar Mar 10 '24 14:03 MarkisDev

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?

  • https://beta.bis.gov/entity-list-0
  • https://www.bis.doc.gov/index.php/documents/pdfs/2447-huawei-entity-listing-faqs/file
  • https://www.federalregister.gov/documents/2020/08/20/2020-18213/addition-of-huawei-non-us-affiliates-to-the-entity-list-the-removal-of-temporary-general-license-and

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

Detective-Khalifah avatar Mar 11 '24 14:03 Detective-Khalifah

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.

MarkisDev avatar Mar 11 '24 15:03 MarkisDev

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.

  • 1911 hrs (07:11 pm) daily alarm Screenshot_20240311_191437_com android keyguard

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

  • Alarm that rings after phone starts.

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

Screenshot_20240312_195907_com android keyguard

Detective-Khalifah avatar Mar 14 '24 21:03 Detective-Khalifah

@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.

MarkisDev avatar Mar 26 '24 14:03 MarkisDev

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

Detective-Khalifah avatar Mar 30 '24 22:03 Detective-Khalifah

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

Detective-Khalifah avatar Apr 04 '24 13:04 Detective-Khalifah

Marking this issue as closed as associated PR is merged. Feel free to reopen if needed!

MarkisDev avatar Feb 05 '25 17:02 MarkisDev