如何调试iBeacons和存折 [英] How to debug iBeacons and Passbook
问题描述
我有一个通行证(通过它可以进行遍历,推送,注册,拉动刷新,定位等),并在其上创建了Beacons数组.它具有一个字典,其中包含Estimote iBeacon的UUID,消息,主要和次要内容.
I have a pass (which eveyrthing works on, pushs, registrations, pull to refresh, locations, etc) that I've created a Beacons array on. It has a dictionary with a UUID, message, major and minor for an Estimote iBeacon.
"beacons":
[
{
"proximityUUID":"B9407F30-F5F8-466E-AFF9-25556B57FE6D",
"major":5723,
"minor":49600,
"relevantText":"Welcome to goldstar"
}
],
我可以在Estimote应用程序中看到iBeacon,但在存折的锁定屏幕上没有收到任何消息.有这个窍门吗?消息显示的时间是否有限制?在安装通行证或在设备的Xcode控制台中都没有出现错误.
I can see the iBeacon in the Estimote app, but I get no message on the lock screen for my Passbook. Is there a trick to this? Are there some limits to when the message shows up? I get no errors either installing the pass or in the Xcode console for the device.
我在 https://essentialtechnologies.ca/coffee_demo/处使用了密码套件生成器来创建iBeacon演示通过,它正在与我的iBeacon一起使用.我将密码从该通行证中复制/粘贴到了通行证中,不起作用.
I used the passkit builder at https://essentialtechnologies.ca/coffee_demo/ to create an iBeacon demo pass, and it is working with my iBeacon. I copy/pasted the code from that pass into my pass, doesn't work.
如何调试iBeacon和存折?
How does one debug an iBeacon and a Passbook pass?
推荐答案
为了使iBeacon消息显示在锁定屏幕上,需要显示一些内容.
Several things need to be present in order for an iBeacon message to be displayed on the lock screen.
- 必须打开蓝牙
- 必须打开位置服务(设置->隐私->位置服务)
- 存折需要被授权才能使用位置服务
- 需要打开后台应用刷新(设置->常规->后台应用刷新)
最后一个要求通常是阻止锁定屏幕消息的内容-幸运的是,此要求已在iOS8中删除.
This last requirement is usually what is blocking the lock-screen message - fortunately, this requirement has been removed in iOS8.
如果以上所有条件均已设置,但您的信标仍然没有显示,您可以发布指向不起作用的.pkpass捆绑包的链接,我们可以查看是否可以复制您的问题.
If all of the above are set, and your beacon still is not showing, can you post a link to the .pkpass bundle that is not working and we can see if we can replicate your issue.
这篇关于如何调试iBeacons和存折的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!