我配置了三种类型的信标:
它们在Google Beacons Dashboard中可见,我在Beacon Toolkit App中看到这些信标"已注册"标签也是。
我已添加了两个附近的通知:
很遗憾,我没有收到此网页的任何通知。我在第三方信标扫描仪中看到了我的信标。
当我开始时,附近的景点会手动扫描:
它没有显示任何与信标相关的网页。
然而,当我打开Eddystone-URL信标时,我会在附近的景点看到这个信标的URL。
此外,我在使用Nearby API的自定义应用中看到了此信标的其他附件。
我已经在HTC One(Android 5.0.1)和Nexus 6(最新的Marshmallow)上进行了测试。
问题是 - 如何运行和调试Google附近的通知?如何向客户展示概念验证?
更新
日志(Eddystone-URL)
07-30 10:00:41.192 17608-1520/? D/NearbyDiscovery: DiscoveryService scanForScreenOnAndPermissionChange()
07-30 10:00:41.194 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:00:41.194 17608-1520/? D/ChimeraResource: Successfully parsed resource with package name: com.google.android.gms and resource name drawable/quantum_ic_nearby_white_24
07-30 10:00:41.271 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.365 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.466 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.568 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.669 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.770 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.875 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:41.976 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.087 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.185 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.288 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.388 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.488 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.593 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.692 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:42.697 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:00:42.699 17608-1520/? D/ChimeraResource: Successfully parsed resource with package name: com.google.android.gms and resource name drawable/quantum_ic_nearby_white_24
07-30 10:00:43.018 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.121 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.224 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.326 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.427 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.528 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.629 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.734 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.836 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:43.935 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:44.038 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:44.241 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:00:44.241 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:44.242 17608-1520/? D/ChimeraResource: Successfully parsed resource with package name: com.google.android.gms and resource name drawable/quantum_ic_nearby_white_24
07-30 10:00:44.342 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:44.447 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:44.755 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:44.861 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.012 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.114 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.163 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.315 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.416 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.520 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.621 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.725 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.768 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:00:45.770 17608-1520/? D/ChimeraResource: Successfully parsed resource with package name: com.google.android.gms and resource name drawable/quantum_ic_nearby_white_24
07-30 10:00:45.828 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:45.929 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.137 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.241 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.547 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.646 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.749 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.855 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:46.955 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:47.056 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:47.161 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:47.259 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:00:47.277 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:00:47.278 17608-1520/? D/ChimeraResource: Successfully parsed resource with package name: com.google.android.gms and resource name drawable/quantum_ic_nearby_white_24
记录iBeacon:
07-30 10:02:13.632 17608-1520/? D/NearbyDiscovery: DiscoveryService scanForScreenOnAndPermissionChange()
07-30 10:02:13.639 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:02:13.709 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:13.811 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:13.912 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.013 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.117 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.217 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.318 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.421 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.521 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.725 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.881 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:14.929 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.032 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.175 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:02:15.185 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.491 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.594 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.695 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.798 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:15.901 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.001 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.101 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.205 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.415 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.511 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.611 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.713 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.815 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.917 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.225 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.427 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.540 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.679 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.781 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.884 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:17.984 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.085 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.188 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.256 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
07-30 10:02:18.291 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.390 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.492 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.599 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:18.908 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.011 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.111 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.213 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.318 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.419 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.520 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:19.798 17608-1520/? D/NearbyDiscovery: Filtered 0 items out
在这两种情况下,我都会看到这个警告:
07-30 10:02:16.101 17608-11716/? W/NearbyDiscovery: Runnable[NearbyDirectManager.onStatusUpdate] not posted since looper is exiting
07-30 10:02:16.204 17608-11716/? W/MessageQueue: Handler (almi) {e19752f} sending message to a Handler on a dead thread
java.lang.IllegalStateException: Handler (almi) {e19752f} sending message to a Handler on a dead thread
at android.os.MessageQueue.enqueueMessage(MessageQueue.java:543)
at android.os.Handler.enqueueMessage(Handler.java:631)
at android.os.Handler.sendMessageAtTime(Handler.java:600)
at android.os.Handler.sendMessageDelayed(Handler.java:570)
at alme.c(:com.google.android.gms:2255)
at almc.b(:com.google.android.gms:90)
at ril.a(:com.google.android.gms:1068)
at alqj.a(:com.google.android.gms:148)
at alvp.a(:com.google.android.gms:376)
at altw.a(:com.google.android.gms:2077)
at almw.a(:com.google.android.gms:1236)
at alol.run(:com.google.android.gms:1309)
at almi.handleMessage(:com.google.android.gms:241)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
答案 0 :(得分:1)
(我在附近工作) 您可以通过Discoverer的附件获得Eddystone-URL,但不能获取网址。所以怀疑是它以某种方式被过滤掉了。我认为可以过滤掉的原因是
要打开调试,您可以使用此命令
在重现时向我们发送信息,我将帮助进一步调试。
您尝试附加的确切内容是什么?