Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BT on/off not working in iOS 14 #27

Open
NgNivida opened this issue Sep 29, 2020 · 4 comments
Open

BT on/off not working in iOS 14 #27

NgNivida opened this issue Sep 29, 2020 · 4 comments

Comments

@NgNivida
Copy link

With new iOS 14, the Bluetooth enabled/disable has stopped working. Anybody looking into this issue?

@josephgiting
Copy link

josephgiting commented Jan 4, 2021

Same here, when Turn ON bluetooth with iOS 14, can someone help please?
Debugging with Xcode, it shows:

Insufficient entitlements to invoke BTLocalDeviceSetModulePower: 13
[BluetoothManager] failed to set power on with error 13

But the app built and run fine with iOS 13.

@jodm
Copy link

jodm commented Jun 10, 2021

Any updates on this? Also encountered this problem in iOS 14.

@josephgiting
Copy link

josephgiting commented Jul 15, 2021

Same here, when Turn ON bluetooth with iOS 14, can someone help please?
Debugging with Xcode, it shows:

Insufficient entitlements to invoke BTLocalDeviceSetModulePower: 13 [BluetoothManager] failed to set power on with error 13

But the app built and run fine with iOS 13.

Upgraded to iOS14.6 and new Xcode, this issue is not observed.
But hit by the following issue:

[MobileBluetoothFramework] MBFXPC LOG Failed to attach to the Bluetooth daemon as the XPC connection is invalid
[BluetoothManager] Session attach called back with BT_SESSION_ATTACHED (1)
[MobileBluetoothFramework] MBFXPC LOG Failed to attach to the Bluetooth daemon as the XPC connection is invalid

Think this is related to https://developer.limneos.net/?ios=14.4&framework=BluetoothManager.framework&header=RemoteDeviceManager.h

and similar to #28
which is Notification issue?

Can anyone help please?

@josephgiting
Copy link

josephgiting commented Oct 19, 2021

Spent a few days trying different things, and still not getting anywhere.
This issue was likely due to the change introduced to CoreBluetooth during iOS 13, then iOS 14 private API's:
https://developer.apple.com/videos/play/wwdc2019/901

In general, it looks like the Private BluetoothManager failed to establish XPC connection with the Bluetooth daemon when instantiate the SharedInstance. Many suggested issues with the Info.plist, and object went out of scope, which didn't help.

I assume iOS 14 still uses Bluetooth's Notifications, as there isn't an article to say otherwise; which then suggests that we need to establish the XPC connection with the Bluetooth daemon, in order to get the notifications to work. I had explored "BluetoothBridge", "BTServicesClient" etc. and still the same.

Hopefully someone with better understanding can revive this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants