views:

468

answers:

1

Hi,

I am planning to a peer to peer app using bonjour for the iphone. There will be no wifi available and hence am relying on bluetooth. I know bonjour based services works over bluetooth in the abscense of wifi.

My question is, will bluetooth on the phone automatically become enabled when I launch the bonjour service or try to do discovery?

If not, how do I enable bluetooth - I can't find any public API's in the SDK?

Regards, hb

A: 

No. The user is responsible for selecting the network connectivity options in the Settings App. If they have not enabled Bluetooth, you cannot turn it on for them.

-t

Tim
also - this web link might also help others http://carpe-cocoa.com/2009-07-29/detecting-when-bluetooth-is-disabled-with-gksession/
macrocreation