'How to communicate and track the external bluetooth device state to iOS 8.4 application?

I am working on VOIP application. I am using Xcode 6.4 with iOS 8.4 SDK.

My requirement is once call established in my application, i need to track whether external bluetooth is connected or not with my iPhone device as well as with my app. I need to communicate with external bluetooth device via my application in call active state. Like how native call and whats app doing in iOS. Same functionality im implementing. Also I need to track if bluetooth device terminated while call is active state in application.

I have tried somany ways by using Corebluetooth frame work. but, Only centralManagerDidUpdateState delegate method calling after that didDiscoverPeripheral not calling. I am unable to track the external device either turn off or turn on, but i am able to connecting after paired manually in settings. Could anyone suggest me a solution?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source