From b98a0c059b72756f934afbc1be9b9f10c2c030be Mon Sep 17 00:00:00 2001 From: linju Date: Mon, 4 Jul 2022 18:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=81=94=E7=B3=BB=E4=B8=AA?= =?UTF-8?q?=E6=8E=A8=E7=9A=84=E6=82=AC=E6=B5=AE=E6=8C=89=E9=92=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E6=A0=B9=E6=8D=AE=E5=B1=8F=E5=B9=95=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E5=8A=A8=E6=80=81=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/uniCloud/uni-push/api.md | 11 ++++++++--- docs/uniCloud/uni-push/introduction.md | 4 ++-- docs/uniCloud/uni-push/options.md | 9 +++++++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/docs/uniCloud/uni-push/api.md b/docs/uniCloud/uni-push/api.md index 6b44d0bf8..606c42758 100644 --- a/docs/uniCloud/uni-push/api.md +++ b/docs/uniCloud/uni-push/api.md @@ -35,7 +35,7 @@ uni.onPushMessage((res)=>{ ### offPushMessage([eventName]) 关闭推送消息监听事件 示例代码: -``` +```js let eventName = (res)=>{ console.log(res) } @@ -1550,7 +1550,12 @@ uni-cloud-push 扩展库的errCode码以uni-cloud-push-error-开头,如:uni- position: fixed; z-index: 10; bottom: calc(10% + 265px); - right: 10px; + right: 230px; +} +@media screen and (max-width: 1350px) { + .weixin-support { + right: 10px; + } } .weixin-support img{ background: #0591F0; @@ -1588,8 +1593,8 @@ uni-cloud-push 扩展库的errCode码以uni-cloud-push-error-开头,如:uni- text-align: center; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); width: 230px; - height: 270px; font-size: 14px; + box-shadow: 0 0 10px #ccc; } .weixin-support:hover .weixin-support-content{ display: block; diff --git a/docs/uniCloud/uni-push/introduction.md b/docs/uniCloud/uni-push/introduction.md index f49fb1c0b..8ed312531 100644 --- a/docs/uniCloud/uni-push/introduction.md +++ b/docs/uniCloud/uni-push/introduction.md @@ -26,8 +26,8 @@ push,指服务器主动向客户端发送消息的技术。无需客户端持 2. 专业push服务器再向客户端发送消息 3. 手机用户在操作系统的通知栏中看到push消息,点击后呼起客户端应用,客户端代码才能接收响应;如果是小程序的话,则是在微信消息里看到订阅消息,点击后呼起小程序。
- - + +
由于手机厂商众多,他们各自都有不同的推送服务,包括Apple、google(仅能在海外使用)、华为、小米、oppo、vivo、魅族,以及还有一些没有专业推送服务的中小手机品牌。他们对App后台耗电都有查杀机制,除了微信等大应用,普通应用很难常驻后台。 diff --git a/docs/uniCloud/uni-push/options.md b/docs/uniCloud/uni-push/options.md index cecddf6db..83557104b 100644 --- a/docs/uniCloud/uni-push/options.md +++ b/docs/uniCloud/uni-push/options.md @@ -786,7 +786,12 @@ apn静默推送 可参考