我CoreLocation在我的应用程序中使用Xcode7(预发布)中的框架,我注意到allowsBackgroundLocationUpdates在CLLocationManager类中有一个新添加的属性.
此属性与"功能"选项卡的"背景模式"中的位置更新之间的关系是什么.它的默认值是什么,它是否会影响在iOS9中运行的应用程序?
我无法重现此错误,但是我的一位用户因以下错误而崩溃(在iOS 11上)。
Fatal Exception: NSInternalInconsistencyException
Invalid parameter not satisfying: bundleProxy != nil
Run Code Online (Sandbox Code Playgroud)
调用以下代码段时:
[[UNUserNotificationCenter currentNotificationCenter]
requestAuthorizationWithOptions:
(UNAuthorizationOptionAlert |
UNAuthorizationOptionBadge |
UNAuthorizationOptionSound)
completionHandler:
^(BOOL granted, NSError * _Nullable error) {
if (granted) {
[self getNotificationSettings];
}
}];
Run Code Online (Sandbox Code Playgroud)
我无法自己复制它。而且我在这里或网上找不到任何类似的东西。有没有其他人碰到这个可以阐明一些观点的人?