I am writing a sunrise and sunset app. The app is to fire audio alerts when the sun rises and sets.
I got the whole thing sorted out under Android thanks to the following 2 plugins:
First one takes care of the background service, second one does the magic of launching/resurrecting the app from nowhere at startApp. really sweet. But…
These plugins are useless for the ios World.
Background services has very strict guidelines. I’ve communicated with the app review team at apple and they told me each app is unique and they need to look into when I send them the app.
Assuming they will reject the use of the famous plug in “de.appplant.cordova.plugin.background-mode”, I decided to develop a Plan-B but I got no objective C/switch exp. & my tool set is limited to JS/Angular what the cordova plugins can do for me basically,
If I were to pull this off with the local Notifications, then I can only schedule upto 64.
That means, in 64/2=32 days, the app will stop its alerts. Plus the local notifications does have its own visual UI which gets in the way in my opinion so I prefer avoiding them. My app just needs to play a small notification alert, it does not need UI which comes with the local Notif.
As I said, as to the android, I can just keep running it until the user stops the app from running.
I’m banging my head around this for the ios.
What say you?