[英]IOS 15 Ibeacon monitoring
I used ibeacon monitoring in background before version ios 15.在 iOS 15 之前,我在后台使用了 ibeacon 监控。
Used this code使用此代码
if let uuid = UUID(uuidString: "1345bbaa-0000-0000-0000-00000000bbbb") {
let region = CLBeaconRegion(
proximityUUID: uuid,
identifier: "1345bbaa-0000-0000-0000-00000000bbbb")
region.notifyEntryStateOnDisplay = true
region.notifyOnExit = true
region.notifyOnEntry = true
beaconRegions.append(region)
locationManager?.startMonitoring(for: region)
}
It doesn't work in this update.它在此更新中不起作用。
In short, not called func总之,不叫func
func locationManager(_ manager: CLLocationManager, didDetermineState state: CLRegionState, for region: CLRegion) func locationManager(_ manager: CLLocationManager, didDetermineState state: CLRegionState, for region: CLRegion)
Do you know anything about these issues?你对这些问题有什么了解吗?
What should I do?我该怎么办?
I answered a related question here showing that on my iPhone 11, beacon monitoring works fine before and after the iOS 15 update.我在这里回答了一个相关问题,表明在我的 iPhone 11 上,信标监控在 iOS 15 更新前后都可以正常工作。 This includes source code and screenshots.这包括源代码和屏幕截图。 So this is clearly not a universal problem with iOS15.所以这显然不是 iOS15 的普遍问题。
It is unclear why you are having trouble with your phone.目前尚不清楚您的手机出现问题的原因。 You might try:你可以试试:
There are often bugs accompanied by a new OS release, so any clarification you can offer based on further tests maybe valuable.新的操作系统版本通常会出现错误,因此您可以根据进一步测试提供的任何说明都可能有价值。
If this only fails in iOS 15, there's a bug there that will result in Apple not notifying you.如果这仅在 iOS 15 中失败,则存在会导致 Apple 不通知您的错误。 Answer here shows how to work around it.此处的答案显示了如何解决它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.