-1

On Android. The code that turns Bluetooth on and off. I am trying to develop an iPhone, is there any function in swift code?

bnnnw154
  • 23
  • 3

1 Answers1

0

In short, no public API can control Bluetooth on/off. The post provided by Skywalker said the same thing too, that post provides a private API to control the on/off status.

My project needs this function before, and I remember no public API to control Bluetooth on/off. But there are APIs to detect the status of bluetooth about on/off.

AechoLiu
  • 17,522
  • 9
  • 100
  • 118
  • 1
    I dont think Apple will provide any API that can be used to control this. It will go against everything they preach – Skywalker Sep 06 '18 at 03:04