Bug: App functionality affected on Huawei devices due to lack of GMS
Description
Issue
I have noticed that the Ultimate Alarm Clock II app has several functionality issues on my Huawei nova Y70. These issues include:
- The alarm not ringing.
- The (countdown) timer reaching zero (0) silently.
- A new alarm updating previously set alarm.
How to recreate:
- Alarm not ringing:
Open Ultimate Alarm Clock; tap the Floating Action Button (FAB) on
Alarmscreen to set a new alarm; set the time for new alarm; save the alarm.
- 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.
- 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
FABto 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 Barmenu/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
- Alarm not ringing:
https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/4dd4dddf-0210-488d-a413-b65917a42b01
- 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
- A new alarm updating previously set alarm:
https://github.com/CCExtractor/ultimate_alarm_clock/assets/58272349/ca8f41b9-5c41-4578-ae22-61c1a4ab5604
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.
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.
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.
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
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
@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.
Sure. I also saw an unmerged issue last week on Timer not ringing.
https://github.com/CCExtractor/ultimate_alarm_clock/issues/548
Marking this issue as closed as associated PR is merged. Feel free to reopen if needed!