2
我必须通过UIApplicationBackgroundFetchIntervalMinimum
或UIApplicationBackgroundFetchIntervalNever
?将特定的NSTimeInterval传递给setMinimumBackgroundFetchInterval是否是一种很好的做法?
或者是有可能通过一个自定义的时间间隔代替,例如10分:
UIApplication.sharedApplication().setMinimumBackgroundFetchInterval(600.0)
在我的应用程序,我要下载一些新的更新数据,而应用程序是在后台。
然后我将使用新数据向用户发送本地通知。