How to debug iBeacons and Passbook

℡╲_俬逩灬. 提交于 2019-12-11 13:23:44

问题


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"
    }
  ],

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.

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.

How does one debug an iBeacon and a Passbook pass?


回答1:


Several things need to be present in order for an iBeacon message to be displayed on the lock screen.

  • Bluetooth must be turned on
  • Location services must be turned on (Settings -> Privacy -> Location Services)
  • Passbook needs to be authorised to use Location Services
  • Background App Refresh needs to be turned on (Settings -> General -> Background App Refresh)

This last requirement is usually what is blocking the lock-screen message - fortunately, this requirement has been removed in iOS8.

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.



来源:https://stackoverflow.com/questions/25003294/how-to-debug-ibeacons-and-passbook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!