Skip to content

Commit e85e6b1

Browse files
author
Wonday
committed
version up to v1.0.17
1 parent 065688b commit e85e6b1

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66

77
### 修改履历
8+
v1.0.17
9+
1. add AliyunPush.removeAllListeners()
10+
2. 修复MIUIUtils类中isMIUI方法android 8.0以上异常
11+
812
v1.0.16
913
1. 修复ios低版本收到通知后闪退问题
1014

@@ -292,8 +296,11 @@ componentDidMount() {
292296
}
293297
294298
componentWillUnmount() {
295-
//
299+
//移除监听
296300
AliyunPush.removeListener(this.handleAliyunPushMessage);
301+
302+
//也可以用移除全部监听
303+
//AliyunPush.removeAllListeners()
297304
}
298305
299306
handleAliyunPushMessage = (e) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-aliyun-push",
3-
"version": "1.0.16",
3+
"version": "1.0.17",
44
"description": "A react native wrapper for aliyun push SDK",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)