BeeTee icon indicating copy to clipboard operation
BeeTee copied to clipboard

BeeTee doesn't work in iOS 14.5

Open smsdm4 opened this issue 3 years ago • 13 comments

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

smsdm4 avatar May 02 '21 17:05 smsdm4

@michaeldorner Can you help me about this problem?

smsdm4 avatar May 03 '21 05:05 smsdm4

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

michaeldorner avatar May 03 '21 06:05 michaeldorner

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

yujinakayama avatar May 03 '21 14:05 yujinakayama

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

smsdm4 avatar May 03 '21 14:05 smsdm4

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

iamabilash avatar May 04 '21 07:05 iamabilash

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

smsdm4 avatar May 04 '21 09:05 smsdm4

@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.

iamabilash avatar May 04 '21 09:05 iamabilash

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

michaeldorner avatar May 04 '21 09:05 michaeldorner

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

iamabilash avatar May 17 '21 05:05 iamabilash

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

jodm avatar Jun 10 '21 13:06 jodm

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

smsdm4 avatar Jun 10 '21 14:06 smsdm4

May I know anyone try this on iOS 15?

josephgiting avatar Oct 04 '21 08:10 josephgiting

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 avatar Nov 21 '21 08:11 yujinakayama