Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I tell if a bonjour service is wi fi or bluetooth?

I am building an app that sends information between two iPhones. The app is working great but the one problem I am having is that I have no way of telling whether bonjour is choosing wi-fi or bluetooth to make the connection. I would like to allow the user to be able to choose which they prefer. Also, is there way to programmatically tell is the device's bluetooth is on?

like image 482
Dancreek Avatar asked May 16 '10 19:05

Dancreek


1 Answers

There is NO WAY TO TELL.

It's just one of those weird things.

And in fact there is no way to programmatically choose WiFi or Bluetooth. It's annoying but true.

Often, multidevice games will have a warning for users:

"Be sure to TURN OFF Bluetooth, to ensure you are using your WiFi connection."

That's the situation.

like image 89
Fattie Avatar answered Oct 03 '22 00:10

Fattie