您好我按照文档https://developer.estimote.com/proximity/ios-tutorial/在Swift中构建了一个简单的应用程序但是在运行时没有检测到信标
下载您的示例并检测信标没有问题,复制并粘贴每个配置,部分代码仍然没有检测到任何内容,
任何阻止我检测信标的跳跃或配置步骤?
示例如下:https://github.com/Estimote/iOS-Proximity-SDK/tree/master/Examples/Swift/DeskObserver
的ViewController
MyAppID已更改为帖子:D
import UIKit
import EstimoteProximitySDK
class LugarActualViewController: UIViewController {
var proximityObserver: EPXProximityObserver!
override func viewDidLoad() {
super.viewDidLoad()
let cloudCredentials = EPXCloudCredentials(appID: "My AppID",appToken: "MYAPPTOKEN")
self.proximityObserver = EPXProximityObserver(
credentials: cloudCredentials,
errorBlock: { error in
print("proximity observer error: \(error)")
})
let blueberryZone = EPXProximityZone(range: EPXProximityRange.custom(desiredMeanTriggerDistance: 0.5)!,
attachmentKey: "floor",
attachmentValue: "1st")
blueberryZone.onEnterAction = { attachment in
print("Enter blueberry (close range)")
}
blueberryZone.onExitAction = { attachment in
print("Exit blueberry (close range)")
}
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
info.plis
能力
答案 0 :(得分:1)
我没有看到对Post.Categories
的调用(:
在您的情况下,您可以在Include(x => x.Relation)
:
startObservingZones