iOS bluetooth forget classic device

In iOS (iPhone), how can we "forget" a paired (Classic Bluetooth) device programmatically?

It seems this is not possible even with the private API (/System/Library/PrivateFrameworks/BluetoothManager.framework).

Can anyone help please?


It is possible to open the Bluetooth settings progammatically:

https://stackoverflow.com/questions/5655674/opening-the-settings-app-from-another-app


How possible is it to access the paired (Classic Bluetooth) devices from Bluetooth Settings and subsequent "forget" one?


Many thanks.

As you note, your apps' programmatic reach only extends to leading the user to Settings...it cannot affect specific changes otherwise - such details are left to the user.

Up until iOS 13, this can be done using BluetoothManager.framework:

  1. BluetoothManager.framework setDevicePairingEnabled(true)
  2. BluetoothManager.framework unpairDevice()

Not sure how to do this in iOS 14 onward.

iOS bluetooth forget classic device
 
 
Q