I am new to IOS, and I am wondering how to run a cron job on the app.
So for example, a way to track:
- when someone has gone offline/online in a chat, and display this in real time to the opposite user.
- a way to constantly track the location of the user whilst they are using the app.
and so on.
I am aware that one can use "background services", but this only seems to work if they are outside of the app, what if I want to track the persons current location whilst they are using the app and update my model accordingly.
How can this be accomplished, cheers.