Battery drain when using CoreLocation Significant Location Monitoring & CoreBluetooth

At the end of the day, Apple’s suggestion of removing location from UIBackgroundModes fixed our battery drain issue. In order to still get locations in the background we had to wrap the [locationManager startLocationUpdates] & [locationManager stopLocationUpdates] calls with: [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler]; [[UIApplication sharedApplication] endBackgroundTask:];

CoreBluetooth XPC connection invalid

CBCentralManager reference should be a strong reference to the class as a member variable. It cannot work as a local reference. Try next: class ViewController: UIViewController { var ble: BLE! override func viewDidLoad() { super.viewDidLoad() ble = BLE() } } class BLE: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate { private var manager: CBCentralManager! required override init() { super.init() … Read more

Communicating between iOS and Android with Bluetooth LE

I’ve already gone through this for at least one week having this same issue. I’ve already asked a question here and I’ve already answered on my own. The main problem is an Android BUG issue. It’s sending a non permitted command on a fixed L2CAP channnel. But when Android is communicating with normal peripheral BLE … Read more

Use BlueZ Stack As A Peripheral (Advertiser)

With your Bluetooth dongle plugged in, running the following command will tell you the device name and give its state: $ hciconfig The output should look something like this: hci0: Type: BR/EDR Bus: USB BD Address: 00:01:02:aa:bb:cc ACL MTU: 1021:8 SCO MTU: 64:1 DOWN RX bytes:1000 acl:0 sco:0 events:47 errors:0 TX bytes:1072 acl:0 sco:0 commands:47 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)