Alarm Clock can not work

Did you try this?

If this works and it doesn't work without charging, then you know for sure that Doze mode is the problem. Then use a Foreground service.

1 Like

Thanks for your quickly reply! I will try what you said. And how to use a Foreground service?

1 Like

I got the time format wrong. Now the alarm clock is working. I want to thank whoever replies to my question.

Yes, this was the first thing that I changed in your project (before testing):

1 Like

I see and thanks for your help!