Posts

Post not yet marked as solved
0 Replies
179 Views
Hello, I am working on an application which communicate with a BLE device. To show to the user the correct actions that he has to perform, I would like to distinguish the cases where the device is not connected fro mthe system (BLE off on the device, too far, ...) and the case where the Device has been forgotten in the System settings. To retreive the peripherals which are already bonded from a previous session, I use the following method: CBCentralManager.retrievePeripherals(withIdentifiers:) When the device is still bonded in the system, I retrieve it correctly. However, when I forget the device in the system settings, I have two cases which are confusing. If I forget the device from the system (so the Phone and the Device can't communicate), I can still retreive the peripheral from the previous method without any problem altough they are not bonded anymore. But if If reboot my phone and then use the same method to retreive the device, then the device that has been forgotten doesn't appears anymore. Based on this, I have two question: Is it possible to know if a device has been forgotten in the system settings ? Is it 'normal' that the device still appears in the retreivedPeripherals when it has benn forgotten ? Thank's
Posted
by fstaine.
Last updated
.
Post not yet marked as solved
0 Replies
367 Views
Hello,I am using iOS CoreBlluetooth to connect to a device which handles ANCS.I tried using the ancsAuthorized(Bool) property and the didUpdateANCSAuthorizationFor:cbperipheral delegate method but I have issues with both of them.The didUpdateANCSAuthorizationFor:cbperipheral delegate method is never called (when I change the switch value in the settings or when I accept the permission popup to activate the notifications on the device).For the ancsAuthorized(Bool), after multiple tests, I noticed that the value of a peripheral is never updated but if I kill the app, change the value in the settings and then restart the app, then, the value is correct.Note that if the app is running and I run it again from xCode, the value is not updated either.I am currently using iO 13.4.1.Has anybody tried and succeeded with thoses ?Thank's
Posted
by fstaine.
Last updated
.