修复LocalNotification  extra字段不统一的bug
master
shikk 5 years ago
parent c80f769970
commit 14c476d78c

@ -8,7 +8,6 @@ collection:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/colle
convert:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/convert-2.0.2/lib/
crypto:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/crypto-2.0.6/lib/
csslib:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/csslib-0.14.6/lib/
flutter:file:///Applications/flutter/packages/flutter/lib/
front_end:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.6/lib/
glob:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/glob-1.1.7/lib/
html:file:///Applications/flutter/.pub-cache/hosted/pub.dartlang.org/html-0.13.3+3/lib/

@ -1,3 +1,7 @@
## 0.0.12
featurn: 修改LocalNotification的属性名为"extra"
## 0.0.11
iOS: 修复 getLaunchAppNotification 返回 null 的情况。

@ -7,7 +7,7 @@
```yaml
dependencies:
jpush_flutter: 0.0.11
jpush_flutter: 0.0.12
```
### 配置

@ -258,7 +258,7 @@ class LocalNotification {
final int id;
final String title;
final String content;
final Map<String, String> extras;//?
final Map<String, String> extra;//?
final DateTime fireTime;
final int badge;//?
final String soundName;//?
@ -270,7 +270,7 @@ class LocalNotification {
@required this.content,
@required this.fireTime,
this.buildId,
this.extras,
this.extra,
this.badge = 0,
this.soundName,
this.subtitle
@ -287,7 +287,7 @@ class LocalNotification {
'content': content,
'fireTime': fireTime.millisecondsSinceEpoch,
'buildId': buildId,
'extras': extras,
'extra': extra,
'badge': badge,
'soundName': soundName,
'subtitle': subtitle

@ -1,6 +1,6 @@
name: jpush_flutter
description: Offically supported JPush Flutter plugin.
version: 0.0.11
version: 0.0.12
author: huminios <h380108184@gmail.com>
homepage: https://www.jiguang.cn

Loading…
Cancel
Save