Does using bonjour on the iphone enable bluetooth automatically?
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开发者_如何学编程
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
精彩评论