Search code examples
iostimeserveralarm

Accessing server at a certain time


I am trying to create an app where at a certain time the user sets (like an alarm) the app access the server, gets the data, and sends the alarm to the user if requirement is satisfied.

Is there any way to achieve this feat?


Solution

  • Nope. You can't do that. iOS doesn't let you run your app as a daemon like that, or wake up at specific times. The best you could do is to create scheduled local notifications that display a message to the user asking them to tap to open your app, which would then connect to the server.