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

Does not work on iOS 10.2 #14

Open
cybertk opened this issue Jan 3, 2017 · 5 comments
Open

Does not work on iOS 10.2 #14

cybertk opened this issue Jan 3, 2017 · 5 comments
Assignees
Labels

Comments

@cybertk
Copy link

cybertk commented Jan 3, 2017

With the code snippet in README,

beeTee.enableBluetooth() fails to lighten the bluetooth logo in Control Center.

But while I toggle the bluetooth manually, I can get the notification like PowerChanged and ConnectabilityChanged

@cybertk cybertk changed the title Does Does not work on iOS 10.2 Jan 3, 2017
@michaeldorner michaeldorner self-assigned this Jan 3, 2017
@michaeldorner
Copy link
Owner

michaeldorner commented Jan 3, 2017

Works fine for for me (iOS 10.2, iPhone SE):

img_2153
img_2154

@cybertk
Copy link
Author

cybertk commented Jan 4, 2017

My device is iPhone 7, confirmed does not work with latest BeeTee code.

@cybertk
Copy link
Author

cybertk commented Jan 4, 2017

Do you need some logs, I can help provide more infos for debug.

@michaeldorner
Copy link
Owner

This would be awesome. And maybe some detailed description what you did in which order.

@cybertk
Copy link
Author

cybertk commented Jan 5, 2017

I used the example code snippet in README,

class Demo: BeeTeeDelegate {
    let beeTee = BeeTee()

   init() {
        beeTee.delegate = self
        beeTee.enableBluetooth()
        beeTee.startScanForDevices()
    }

    func receivedBeeTeeNotification(notification: BeeTeeNotification) {
        switch notification {
        case .DeviceDiscovered:
            for device in beeTee.availableDevices {
                print(device)
            }
        default:
            print(notification)
        }
    }
}

And start the Demo in viewDidLoad(), full code is

override func viewDidLoad() {
  super.viewDidLoad()
  demo = Demo()
}

Before I run the code in Xcode, I turn off the bluetooth in Control Center, then Run app in Xcode. When app launches, I pull up the Control Center, the bluetooth indicator is still off. The logs print in console is

Registered PowerChanged
Registered AvailabilityChanged
Registered DeviceDiscovered
Registered DeviceRemoved
Registered ConnectabilityChanged
Registered DeviceUpdated
Registered DiscoveryStateChanged
Registered DeviceConnectSuccess
Registered ConnectionStatusChanged
Registered DeviceDisconnectSuccess
AvailabilityChanged

While app is running, I turn on the bluetooth in Control Center, app will print the following logs

PowerChanged
ConnectabilityChanged

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

No branches or pull requests

2 participants