qw123wh / new-clock

The best clock app there is
Apache License 2.0
79 stars 27 forks source link

The alarm does not fire and work on Xiaomi phones #20

Closed kia1349 closed 6 months ago

kia1349 commented 2 years ago

I installed and tested the app on my Xiaomi 11 Ultra phone. In the settings, I set the program to auto-start. And I put the battery without any restrictions Sometimes the alarm does not work Sometimes it works but the phone screen does not turn on

qw123wh commented 2 years ago

Try to install the fdroid version, however the two versions are the same. Anyway i have xiaomi phones with miui rom and the alarm clock works fine. It's a miui problem. Try disabling miui optimization in the developer options. Anyway check in the app information, give all the permissions of miui.

kia1349 commented 2 years ago

thanks a loat , i am developer too and we need to source that works on xiaomi too MIUI Optimization missing from Developer options in miui 13 and the MIUI Optimization toggle has gone missing seemingly after the latest MIUI 12.0.7/12.0.5/13.0.4

i test fdroid version and informed you

qw123wh commented 2 years ago

@kia1349 I tried the app on miui again, it's miui 11. But I think it can be fine. You have to go to the settings, applications, clock and give all the permissions where other permissions are written, then disable the battery saver .. I'll send you screenshots 78997DE0-C517-44F4-A697-7CF3230610E3 E97C4667-00D3-4C02-AF46-93551A98FF73 B580D9E3-9CEA-43DA-B620-040E4D4A5725

qw123wh commented 2 years ago

Since you are a developer, feel free to add some features that can improve the app. For example if I could put an option in the settings to select the theme: "automatic / white / dark". Currently the behavior is always on automatic.

kia1349 commented 2 years ago

thank again.i tried these settings, alarm work but activity "AlarmActivity" not show.it can not turn on screen and show on screen when screen locked nwith pin or finger print but i try again

kia1349 commented 2 years ago

about the theme: "automatic / white / dark" , i try too thanks for sharing your code and idea

qw123wh commented 2 years ago

I found a guide to make miui optimization reappear. Go into developer settings and click "reset to default values" a couple of times at this point it should reappear. I don't know if this guide works, just give it a try. Perhaps miui has worsened in terms of restrictions in third-party apps, however in mui 11 there is no such bug.

qw123wh commented 2 years ago

about the theme: "automatic / white / dark" , i try too thanks for sharing your code and idea

Thanks

kia1349 commented 2 years ago

I found a guide to make miui optimization reappear. Go into developer settings and click "reset to default values" a couple of times at this point it should reappear. I don't know if this guide works, just give it a try. Perhaps miui has worsened in terms of restrictions in third-party apps, however in mui 11 there is no such bug.

I have done this method before. This option is in the settings list, but unfortunately it has been disabled by Xiaomi. Screenshot_2022-06-04-17-45-49-147_com android settings

kia1349 commented 2 years ago

Since you are a developer, feel free to add some features that can improve the app. For example if I could put an option in the settings to select the theme: "automatic / white / dark". Currently the behavior is always on automatic.

hi again qw123wh i add option in the main screen to select the theme: "automatic / white / dark". i add this to fdroid you can test it seperately in your computer and if it is ok then merge to your app

i sent source code to your email: qw123whreuvkjs@gmail.com

qw123wh commented 2 years ago

@kia1349 The app has been updated and the theme option has been added. Thanks anyway for your help. As for the alarm with the phone off I found that it all depends on this app pre-installed on qualcom phones "com.qualcomm.qti.poweroffalarm" This is the version of xiaomi, please try to update it: https://www.apkmirror.com/apk/xiaomi-inc/poweroffalarm-3/poweroffalarm-3-12-release/

qw123wh commented 2 years ago

try the new version, uninstall the old one first, it may be better

qw123wh commented 6 months ago

Done