I am trying to turn on Bluetooth automatically using my app. The usual way would be for the user to go to settings and turn on. But I need to to be turned on from the app. I have gone through lots of documentation and they are referring to private APIs but all are very old. I do not mind that it's not going to be approved at App Store.
Is there any way to turning on Bluetooth programmatically?
It can be done, however it's by private framework which can be found.
An example would be using BeeTee. It enables bluetooth to be turned on and the usage is given there by
class Demo: BeeTeeDelegate {
let beeTee = BeeTee()
init() {
beeTee.delegate = self
beeTee.enableBluetooth()
}
}