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

BeeTee doesn't work in iOS 14.5 #28

Open
smsdm4 opened this issue May 2, 2021 · 13 comments
Open

BeeTee doesn't work in iOS 14.5 #28

smsdm4 opened this issue May 2, 2021 · 13 comments

Comments

@smsdm4
Copy link

smsdm4 commented May 2, 2021

hello,
after update my iPhone 7 to iOS 14.5, my application using BeeTee doesn't work.
Anybody looking into this issue?

@smsdm4
Copy link
Author

smsdm4 commented May 3, 2021

@michaeldorner Can you help me about this problem?

@michaeldorner
Copy link
Owner

Sorry I don’t have the time to work on the project currently.

@yujinakayama
Copy link

Same here.
It seems BluetoothManagerHandler's enabled() always returns false on iOS 14.5.

@smsdm4
Copy link
Author

smsdm4 commented May 3, 2021

@yujinakayama if you find a solution please let us know. thank you.

@iamabilash
Copy link

I am also getting the same issue. Bluetooth connection notifications have also stopped working for me.

@smsdm4
Copy link
Author

smsdm4 commented May 4, 2021

@iamabilash I guess the main problem is BluetoothManagerHandler's enabled(). if we solve this problem Notifications will be ok.

@iamabilash
Copy link

iamabilash commented May 4, 2021

@smsdm4 okay. I have tried updating the private headers but in vain so far but I think the BluetoothManager framework bundle is still supported in IOS 14.5. It might be possible that methods have been changed.

Please do let me know if you get anything on it.

@michaeldorner
Copy link
Owner

Let's wait until the new header for iOS 14.5 are available (e.g. here). Probably the method signature has changed.

@iamabilash
Copy link

Hi, Are you able to find any solution for the issue?

@jodm
Copy link

jodm commented Jun 10, 2021

Also interested in knowing if there is a possible solution for this issue?

@smsdm4
Copy link
Author

smsdm4 commented Jun 10, 2021

I still did not find a solution, I had to change it completely.

@josephgiting
Copy link

May I know anyone try this on iOS 15?

@yujinakayama
Copy link

After some research and trial-and-error, I gave up using BluetoothManager.framework.

If you need only the following features:

  • Check if the iOS device is connected to a Bluetooth audio device
  • Get notified of audio output change

You can utilize AVAudioSession to handle them:

import AVFAudio

var isConnectedToBluetoothAudioDevice: Bool {
    let route = AVAudioSession.sharedInstance().currentRoute
    return route.outputs.first?.portType == .bluetoothA2DP
}

NotificationCenter.default.addObserver(forName: AVAudioSession.routeChangeNotification, object: nil, queue: .main) { (notification) in
    if isConnectedToBluetoothAudioDevice {
        // Do something
    }
}

yujinakayama added a commit to yujinakayama/smart-car-dashboard that referenced this issue Nov 24, 2021
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

6 participants