How to unpaired/Disconnect connected/Paired devices in BLE? - ios

I want my app remove paired bluetooth devices. Because if device are paired , these devices are not come under while scanning the device and unabl to sychn with other. I tried CBCentralManager cancelPeripheralConnection, but it doesn't work. they're still paired.I can handle it programmitically but main problem is that they are not showing up in scanningPeripheal devices?

Related

Can anyone give me an idea of how a bluetooth device like silent beacon can send a command to the phone while the screen is closed

I am talking the silentbeacon.com personal safety alarm device. How is it able to connect with the phone with bluetooth while the screen is locked. I am looking for an IOS solution.
Just because the screen is locked on the iOS device doesn't mean it cannot do any Bluetooth functionality. iOS devices have a special background mode that allows them to continuously read BLE adverts and also communicate with remote BLE devices. You can find more about this here:-
CoreBluetooth background processing for iOS apps
BLE device keeps connecting with iPhone when app terminates
iOS - BLE scan and connect to peripheral in background

From WatchOS App connect BLE device using iPhone Bluetooth

Hi everyone here it's my problem, I have an simple app on my Apple Watch and iPhone. All my goal is using iPhone minimum on the App. Instead of iPhone App I want to use this App mostly from the watch. So I have an UI screen consisting with 2 buttons (Scan and Connect) on the watch. And these buttons should control the iPhone's Bluetooth. I don't want to use Watch Bluetooth. Considering all, is it posibble to trigger the iPhone Bluetooth in background from Watch and connect iPhone to a BLE device.
I think I fix this problem with your help guys;
Hi again, I believe I can fix this problem with the background transfers. Let me first explain the problem better when I want to use iPhone App local database and also want to use iPhone's Bluetooth from the Watch App I had trouble. And then I noticed sending messages from Watch to iOS wakes up iOS in the background (Source for more detail). In this way I'll have using iPhone app only in background and even scan BLE devices from the iPhone in bg and send them to the Watch App (WC Sessions).
Source (Communicate with iPhone and Watch)
https://medium.com/#jackywangdeveloper/apple-watch-communication-with-iphone-af84d51ff810

Re-Connect Bluetooth Low Energy iOS

I'm working on CoreBluetooth for 5 months. There is a topic which still I don't understand. I'm successfully connected and paired ble device with ios device in background and foreground. But when app is terminated by user, ble device disconnected. Some people say : application doesn't wake up when terminated by user via ble device. But I don't agree with them. Because
Tile App https://itunes.apple.com/us/app/tile-find-lost-keys-phone/id664939913?mt=8 doing this. I connect Tile device from Tile app then I swipe-kill app from the application list. Then I click tile button and Tile re-connect ble device. How can I do same thing with using CoreBluetooth ? I asked similar question on stackoverflow:
Re-connect bluetooth device when app is terminated

BLE pheripheral not detected when ios app on background

i am develop a ble based iOS application on iOS 8.0. i have a peripheral device, that advertise data . am just open my application , the scanning started on viewdidload. then it detect the peripheral and listed in a table view. it is working fine. but when am switch off the peripheral device, after am start the iOS app, scanning started on didload, and am pressed center key, then app going to background. after am just switch on peripheral device. but it could not detect the device.
(current situation, am switch off and on the bluetooth of an iOS device manually. then background app detected the peripheral and got notification message.)
what is the actual problem with my app? and if any solutions?
Make sure you have enabled the proper background mode in the target capabilities page. Go to the Capabilities tab for your target and switch "Background Modes" to ON, the check "Uses Bluetooth LE accessories".

Bluetooth connection in iOS

Is it possible to programatically pair an iOS device with a Bluetooth device?
I would have the device's MAC address and also the Bluetooth Pin.
I know it's possible to do on an Android device without any pairing screen/dialogue appears, but can it be done in iOS?
Thanks for any pointers.

Resources