문제

I would like to do a large background fetch and Core Data import which takes between 10 and 50 minutes.

Would that be possible with the background fetch method in iOS 7?

The Apple Docs states that a background fetch should take less than 30 seconds otherwise it will be called less often.

However, if I am ok with my background fetch being called "less often" is there a limitation on what can be done in a background fetch (e.g. Core Data writes) and how long it may take?

도움이 되었습니까?

해결책

Yes, the watch dog will eventually kill your application. The length of time that your application gets to run is dependent on the needs of the system and can vary by a large amount.

If you have an import that takes that long then I would suggest designing it so that it can be interruptible and resumable. Otherwise it will never complete.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top