Hey there ! I am working at BLE Connection app. I developing my project with Swift. I made connection , send data , receive data , etc.
Question 1:
I am pairing my BLE device on my iPhone with using CoreBluetooth. I wanna send a message when user closing to app. But i can not find this trigger function. How can i do this ? or It is possible ? When i research this subject on internet, i find something like "applicationWillTerminate" .etc. But when i write this function , xcode not complete my sentence "applicationWillTerminate". I am thinking about this function maybe deprecated ? I can not find any information about this. How can i solve this ?
Question 2:
When is pair my BLE device, i get close my application and open again my app can not find my BLE. Because first time those are paring and when i closed the app those not disconnect. How can i solve this ?
Post
Replies
Boosts
Views
Activity
Hello everyone, i work at BLE device on swift. I have a problem to CoreBluetooth side. When my IOS device and BLE device not pairing , i got open my IOS App , app found my BLE device and be pair. But i closing my app when paired BLE to IOS device, i open my IOS App, app can't find my BLE and BLE's services. But IOS device and BLE device paired. How can i detect my BLE in my app when IOS device and BLE devices paired ?