Уведомления поблизости не отображаются
Я настроил три типа маяков:
- Eddystone-UID
- Eddystone-UID с TLM
- IBeacon
Они видны в Google Beacons Dashboard, эти маяки я вижу в Beacon Toolkit App и на вкладке "Зарегистрированные".
Я добавил два соседних уведомления:
К сожалению, я не получил никакого уведомления с этой веб-страницей. Я вижу свои маяки в стороннем сканере маяков.
Когда я начал сканирование достопримечательностей поблизости:
на нем не было веб-страниц, связанных с маяками.
Однако, когда я включаю маяк Eddystone-URL, я вижу URL этого маяка в близлежащих достопримечательностях.
Кроме того, я вижу другие вложения для этих маяков в моем пользовательском приложении, которое использует Nearby API.
Я тестировал его на HTC One (Android 5.0.1) и Nexus 6 (последний Marshmallow).
Итак, вопросы - как запустить и отладить Google Nearby Notifications? Как я могу показать доказательство концепции своим клиентам?
ОБНОВИТЬ
Логи (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)
1 ответ
(Я работаю над "Рядом"). Вы можете получить прекрасный Эддистоун-URL, но не URL через вложение Discoverer. Так что подозрение в том, что оно как-то отфильтровано. Причины, которые я вижу, могут быть отфильтрованы
- Пустой заголовок или описание
- не https (не относится к вашему делу)
- содержание неуместно / недействительно, поэтому оно было отфильтровано.
Чтобы включить отладку, вы можете использовать эту команду
- "adb shell setprop log.tag.NearbyDiscovery VERBOSE"
Отправьте нам информацию, когда вы воспроизведете ее, и я помогу отладить дальше.
Какой именно контент вы пытаетесь прикрепить?