【问题标题】:Does application:performFetchWithCompletionHandler: get called if Background App Refresh is disabled in settings?如果在设置中禁用后台应用程序刷新,是否会调用 application:performFetchWithCompletionHandler: ?
【发布时间】:2014-12-11 22:13:33
【问题描述】:

每当 iOS 调用此回调时,我都会使用 application:performFetchWithCompletionHandler: 从 API 获取一些数据。

根据我对后台应用刷新的理解,我永远不需要检查 [UIApplication sharedApplication] backgroundRefreshStatus] 的值,但我只想确认 - 如果在我的设备设置中禁用后台应用刷新,iOS 是否会调用 application:performFetchWithCompletionHandler:

【问题讨论】:

    标签: ios iphone ios7 ios8


    【解决方案1】:

    它不会调用它。 但是你仍然可以从 Xcode 的 Debug->Simulate background fetch 中强制它

    【讨论】:

      猜你喜欢
      • 2016-04-24
      • 1970-01-01
      • 1970-01-01
      • 2015-12-18
      • 2015-11-29
      • 2022-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多