0

I am using UIApplicationBackgroundFetchIntervalMinimum for background fetch for updating UI. But I know that system decides when to call its method Performfetchwithcompletionhandler So, sometime it may take 10 min or more or less than 10 min.

I want to set static time into minimum fetch or calling method within 3 minutes. So is there any possibility that I can set 3 minutes into minimumfetchtimeinterval ?

I really appreciate any help.
Thank you

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jitendra Modi
  • 2,344
  • 12
  • 34

1 Answers1

0

No, iOS will determine when to give your app a chance to perform a background fetch, based on how frequently your background fetch results in new data and the energy impact of your background fetch.

You cannot specify a specific interval. Specifying UIApplicationBackgroundFetchIntervalMinimum will result in the most frequent background fetch.

Paulw11
  • 108,386
  • 14
  • 159
  • 186
  • Yeah, I know that system decides when to call performfetchcompletionhandler, So how can I do it for minimum 3 minute interval ? I want to update UI for every 3 minutes. please help me with it – Jitendra Modi Feb 04 '17 at 06:17
  • You can't. You can use remote push to trigger your app, but even then if you send too many pushes iOS will limit the rate at which they are delivered to your app. in mobile apps you should use push rather than polling; it isn't battery or network use friendly – Paulw11 Feb 04 '17 at 06:20