The invention discloses a method based on ANCS protocol compatible multi platform notification message acquisition methods, including: Android peripheral devices connected to the broadcast; notification message, read the iOS equipment including establishment of Android peripheral equipment and iOS equipment: iOS devices active connection Android peripherals, notification message Android peripheral equipment to reverse connection iOS read the iOS device connected to the ANCS format; notification message, read the Android device which includes the establishment of Android peripheral devices and Android devices: Android devices active connection Android peripherals, converting the notification message of Android equipment for the ANCS format, then a notification message is sent to the Android peripheral ANCS format. By adopting the invention, the notification message of the iOS device and the Android device can be obtained through the ANCS protocol, and the flexibility and adaptability are stronger.
【技术实现步骤摘要】
基于ANCS协议兼容多平台的通知消息获取方法
本专利技术涉及通信
,尤其涉及一种基于ANCS协议兼容多平台的通知消息获取方法。
技术介绍
iOS是由苹果公司开发的移动操作系统,iOS设备的通知消息只能通过AppleNotificationCenterService(ANCS)获取。Android是一个以Linux为基础的半开源操作系统,Android设备的通知消息则只能通过NotificationListenerService获取。因此,iOS设备及Android设备的通知消息不能共用一套获取方法,使得不能通过ANCS协议获取Android设备的通知消息,并且iOS设备也不能扫描大部分的BluetoothLowEnergy(BLE,低功耗蓝牙技术)外围设备。
技术实现思路
本专利技术所要解决的技术问题在于,提供一种基于ANCS协议兼容多平台的通知消息获取方法,可使iOS设备及Android设备的通知消息共用一套获取方法,灵活性、适应性更强。为了解决上述技术问题,本专利技术提供了一种基于ANCS协议兼容多平台的通知消息获取方法,包括:Android外围设备进行广播 ...
【技术保护点】
一种基于ANCS协议兼容多平台的通知消息获取方法,其特征在于,包括:Android外围设备进行广播;所述Android外围设备与iOS设备建立连接以读取iOS设备的通知消息,其中,所述Android外围设备与iOS设备建立连接以读取iOS设备的通知消息的方法包括:iOS设备主动连接Android外围设备后,Android外围设备反向连接iOS设备以读取iOS设备的ANCS格式的通知消息;所述Android外围设备与Android设备建立连接以读取Android设备的通知消息,其中,所述Android外围设备与Android设备建立连接以读取Android设备的通知消息的方法 ...
【技术特征摘要】
1.一种基于ANCS协议兼容多平台的通知消息获取方法,其特征在于,包括:Android外围设备进行广播;所述Android外围设备与iOS设备建立连接以读取iOS设备的通知消息,其中,所述Android外围设备与iOS设备建立连接以读取iOS设备的通知消息的方法包括:iOS设备主动连接Android外围设备后,Android外围设备反向连接iOS设备以读取iOS设备的ANCS格式的通知消息;所述Android外围设备与Android设备建立连接以读取Android设备的通知消息,其中,所述Android外围设备与Android设备建立连接以读取Android设备的通知消息的方法包括:Android设备主动连接Android外围设备后,将Android设备的通知消息转换为ANCS格式,再将ANCS格式的通知消息发送至Android外围设备。2.如权利要求1所述的基于ANCS协议兼容多平台的通知消息获取方法,其特征在于,所述Android外围设备与iOS设备建立连接以读取iOS设备的通知消息的方法包括:所述iOS设备主动连接Android外围设备;所述Android外围设备反向连接iOS设备;所述Android外围设备等待iOS设备收到新的通知消息;所述Android外围设备读取iOS设备的ANCS格式的通知消息。3.如权利...
【专利技术属性】
技术研发人员:梁国锋,容伟新,招嘉焕,刘怀广,侯志春,万自尧,
申请(专利权)人:广州钛启信息科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。