views:

27

answers:

1

How can I turn off the bluetooth hardware when I'm done with it so that my app does not drain the battery?

I've seen references to private frameworks but not how to do this in a way that will not get rejected by Apple.

What Framework/code do I need?

+1  A: 

You can't, and you shouldn't be able. How do you know the user doesn't want to keep bluetooth turned on so they can pair with their handsfree kit, or their car. If I was using your app, and then I walked to my car, started it, got a phone call, and my handsfree didn't work I would be pretty annoyed. You don't own the device, and you don't know what the user is doing outside of your app.

Louis Gerbarg