IOS Swift how to use background fetch

378 Views Asked by At

Need to implement a background service which will make a web service call and update a record on cloud.
This service should run in all mode of the iPhone app, even if the app is killed and not running (Assume its suspended mode).
Even when we reboot the phone, it should start the service after reboot.

We looked at background fetch - does this fire when the app is suspended?
I need it poll every 20 seconds.

Is it possible with background fetch?

1

There are 1 best solutions below

0
On

You can't run any process if your app is killed, Apple dosn't allow to call any type of service after app kill or closed, you can only allow location but you need to give reason to fatch location even app is killed