I have done these steps:
- [x]add capability in background task - background fetch
- [x]add application.setMinimumBackgroundFetchInterval(UIApplicationBackgroundFetchIntervalMinimum) in appdelegate
- [x]implement performFetchWithCompletionHandler
Result: background fetch wasn't stable ,sometimes it triggered more than 10min,sometimes it triggered more than 24 hours. I test it in three devices. Event happened in quite different time.Use Xcode - Debug - Simulate Background Fetch, the feature will work fine.
Can I change system time directly to trigger the background fetch ? I tried but background fetch unstable as well.
Could anyone give me some advices?