Tôi sắp thiết lập tìm nạp nền cho ứng dụng iOS.Giá trị của UIApplicationBackgroundFetchIntervalMinimum là gì?
tôi làm:
func application(
application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?
) -> Bool {
...
application.setMinimumBackgroundFetchInterval(
UIApplicationBackgroundFetchIntervalMinimum)
...
nếu tôi kiểm tra và in UIApplicationBackgroundFetchIntervalMinimum
trong trình gỡ lỗi nó nói 0
- giá trị là những gì thực sự?
Tôi đã cố gắng tìm kiếm thông qua các api cũng nhưng không có may mắn https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/setMinimumBackgroundFetchInterval:
ok nhưng tốt với chỉ báo – pellekrogholt
Hằng số này khả dụng trên iOS7 trở lên. –
Khoảng 10 phút nếu cài đặt này chỉ có sẵn cho iOS 7+, theo https://developer.apple.com/documentation/uikit/uiapplicationbackgroundfetchintervalminimum?language=objc? –