Can Android support Zeroconf/Bonjour over Bluetooth? How about TCP/IP?

后端 未结 3 1333
予麋鹿
予麋鹿 2021-02-04 02:27

On iPhone if I create custom service for example \"_test._tcp.local.\" in Bonjour I can seek/broadcast this service through WiFi or/and Bluetooth.

It is possible on Andr

3条回答
  •  北海茫月
    2021-02-04 02:44

    Not on bluetooth, because Android currently doesn't support TCP/IP over bluetooth, and Android's native NSD support (network service discovery) works over IP.

    It DOES, however, work over Wi-Fi. Also, Android supports service discovery over Wi-Fi Direct, which gives you greater range and battery efficiency than bluetooth. For a guide on how to integrate service discovery into a wi-fi direct enabled application, check out the Android Training lesson.

    Portions of this answer are duplicated from our Dear Android video response to this question

提交回复
热议问题