From 2eefd1c24752d06bc908bd9e1788fa369361912e Mon Sep 17 00:00:00 2001 From: Hevin Date: Mon, 25 Sep 2017 12:32:27 +0800 Subject: [PATCH] Fixed android api doc --- doc/Android_detail_api.md | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/doc/Android_detail_api.md b/doc/Android_detail_api.md index c478e31..1186652 100644 --- a/doc/Android_detail_api.md +++ b/doc/Android_detail_api.md @@ -1,11 +1,7 @@ # Android API 简介 - [注册成功事件](#注册成功事件) -- [接收通知时获得通知的内容](#接收通知时获得通知的内容) -- [打开通知时获得通知的内容](#打开通知时获得通知的内容) -- [收到自定义消息时获取消息的内容](#收到自定义消息时获取消息的内容) - [获取集成日志(同时适用于 iOS)](#获取集成日志同时适用于-ios) -- [接收消息和点击通知事件](#接收消息和点击通知事件) - [统计分析](#统计分析) - [清除通知](#清除通知) - [设置允许推送时间](#设置允许推送时间) @@ -27,31 +23,6 @@ document.addEventListener('jpush.receiveRegistrationId', function (event) { }, false) ``` -## 接收通知时获得通知的内容 - -- 内容: - window.JPush.receiveNotification.alert -- 标题: - window.JPush.receiveNotification.title -- 附加字段: - window.JPush.receiveNotification.extras.yourKey - -## 打开通知时获得通知的内容 - -- 内容: - window.JPush.openNotification.alert -- 标题: - window.JPush.openNotification.title -- 附加字段 - window.JPush.openNotification.extras.yourKey - -## 收到自定义消息时获取消息的内容 - -- 内容: - window.JPush.receiveMessage.message -- 附加字段: - window.JPush.receiveMessage.extras.yourKey - ## 获取集成日志(同时适用于 iOS) ### API - setDebugMode @@ -159,6 +130,11 @@ window.JPush.setSilenceTime(startHour, startMinute, endHour, endMinute) ## 通知栏样式定制 +目前 REST API 与极光控制台均已支持「大文本通知栏样」、「文本条目通知栏样式」和「大图片通知栏样式」。可直接推送对应样式 +的通知。 + +此外也能够通过设置 Notification 的 flag 来控制通知提醒方式,具体用法可参考 [后台 REST API](https://docs.jiguang.cn/jpush/server/push/rest_api_v3_push/#notification)。 + ### API - setBasicPushNotificationBuilder, setCustomPushNotificationBuilder 当用户需要定制默认的通知栏样式时,则可调用此方法。