Is it actually possible to implement alarms for ios? #36
-
I am not sure, if it is actually possible to implement an alarm for ios for a long time background mode. I tested it for 15 minutes, and it works. But what about the longer term? Several hours or days. There is a warning in xcode's console:
It needs to be tested on Testflight or Firebase console. (build in profile or release modes to enable launching from the home screen.) And there is a similar question in stackoverflow about alarms. The topic is quite old (6 years), but there is an opinion that it is impossible.
And another one about App "Alarmy"
This may consume additional battery. And will this hack cause problems with publishing in the App Store? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sorry. I inadvertently read the iOS section of the README.md and didn't notice
It might be better to explicitly state that the alarm would not work on ios in the background. |
Beta Was this translation helpful? Give feedback.
-
I did a lot of research and you're right, there is always the risk that iOS decides to kill the native background processes to free up some RAM if needed. Unfortunately, I couldn't find a way that would be 100% reliable. This is how the OS is designed so the only things we can do is find some hacks. |
Beta Was this translation helpful? Give feedback.
Sorry. I inadvertently read the iOS section of the README.md and didn't notice
It might be better to explicitly state that the alarm would not work on ios in the background.
You could delete this discussion.