Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic Phone App. Set alarm that survives reboot. Open App when alarm fires

I'm new to Ionic and building an alarm app.

How do I set an alarm and have it survive reboot?
How does the alarm activate the app to a certain ui state?

I found this, but it has this problem

This looked promising, but I didn't see an alarm function.

These two Cordova plugins looked promising, but they don't support IOS.

What's the best strategy? Thanks!

like image 343
Michael Cole Avatar asked Jan 09 '23 07:01

Michael Cole


1 Answers

On iOS there is no way to open your app out of the blue without the user's doing it manually (or calling it from another app). -Unless you are creating a jailbroken app
The closest you can get is to set a Local Notification to pop up at the time that your alarm is supposed to go off. It will trigger a Push-like Notification that should be reboot persistent. Once it popped, if the user decides to tap on it, it will open your app.

like image 199
Quentin Hayot Avatar answered Jan 24 '23 19:01

Quentin Hayot