From e85e6b1ac40e0bb9516e7b6e9f34ea2b472b3172 Mon Sep 17 00:00:00 2001 From: Wonday Date: Sat, 23 Mar 2019 20:17:05 +0800 Subject: [PATCH] version up to v1.0.17 --- README.md | 9 ++++++++- package.json | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2483ea0..81a9658 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ ### 修改履历 +v1.0.17 +1. add AliyunPush.removeAllListeners() +2. 修复MIUIUtils类中isMIUI方法android 8.0以上异常 + v1.0.16 1. 修复ios低版本收到通知后闪退问题 @@ -292,8 +296,11 @@ componentDidMount() { } componentWillUnmount() { - // + //移除监听 AliyunPush.removeListener(this.handleAliyunPushMessage); + + //也可以用移除全部监听 + //AliyunPush.removeAllListeners() } handleAliyunPushMessage = (e) => { diff --git a/package.json b/package.json index d5d8134..1f15d88 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-aliyun-push", - "version": "1.0.16", + "version": "1.0.17", "description": "A react native wrapper for aliyun push SDK", "main": "index.js", "repository": {