Search code examples
ios7bluetooth-lowenergycore-bluetoothancs

How possible ANCS ( Apple Notification Center Service ) send phone call or sms to wearable devices?


As we know ANCS provides the chance to send notification to paired BLE devices such as Pebble alike watches. My question is

Is that possible to send the telephone call info (i.e, the calling number ) or SMS message to the paired BLE devices via ANCS ?

Quite new to ANCS, got a lot sample code from this question here to verify if the wearable device can know who is calling my iphone, or what message is sending to me. I know Apple has high protection for users, call and sms are high sensitive info, therefore, that will be no way to get such info even from ANCS way.

Thanks in advance.


Solution

  • The short answer to your question is yes.

    I have been playing with this for a few hours and have configured a 'Central' on my laptop that connects to the ANCS service on my iPhone. I am able to read the 'Notification Source' data and then request the attributes 'Title', 'Subtitle' and 'Message' via the control point characteristic using "Get Notification Attributes". This is as far as I have got...

    Have a look at the ANCS specification here:

    https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/AppleNotificationCenterServiceSpecification/Appendix/Appendix.html#//apple_ref/doc/uid/TP40013460-CH3-SW7

    Took me a while to understand what was going on but I think the bits you will probably be most interested in are "Get Notification Attributes" or "Get App Attributes".