ANCS(苹果通知中心服务)如何向可穿戴设备发送电话或短信? [英] How possible ANCS ( Apple Notification Center Service ) send phone call or sms to wearable devices?

查看:298
本文介绍了ANCS(苹果通知中心服务)如何向可穿戴设备发送电话或短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们知道,ANCS提供了将通知发送到配对的BLE设备(例如类似Pebble的手表)的机会.我的问题是

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

是否可以通过ANCS向配对的BLE设备发送电话信息(即呼叫号码)或SMS消息?

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

对于ANCS来说,这是一个很新的东西,它从问题中获得了很多示例代码. a>在此处验证可穿戴设备是否可以知道谁在给我的iphone打电话,或向我发送什么消息.我知道苹果为用户提供了高度保护,通话和短信是高度敏感的信息,因此,即使从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.

先谢谢了.

推荐答案

您的问题的简短答案是肯定的.

The short answer to your question is yes.

我已经玩了几个小时,并在笔记本电脑上配置了一个中央",可连接到iPhone上的ANCS服务.我能够读取通知源"数据,然后使用获取通知属性"通过控制点特征请求属性标题",字幕"和消息".据我所知...

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...

在这里查看ANCS规范:

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".

这篇关于ANCS(苹果通知中心服务)如何向可穿戴设备发送电话或短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆