I need to realize the mode (it can be turned on/off), which will be every minute to send a request to the server and get prescriptions if you need to make another query or to wait (on average a minute), and again to request instructions. Mode should work even if the user minimize the application, mainly because it will be used.
I know there is background modes, one for me (I understand) fits either background fetch or executing finite-length tasks. But the amendment, background fetch, I can set the interval query, setMinimumBackgroundFetchInterval, which guarantees no periodicities. But concerns about executing finite-length tasks that I need to run only 2-3 of the query (as understood via NSTimer), and by itself is not lengthy.
How to organize the work in the background? What should I use? Maybe I do need to run through NSURLSession, but then in what direction to dig?