修复通知栏缺少extras字段

master
raoxudong 5 years ago
parent ebace42243
commit 678bab9112

@ -332,7 +332,7 @@
"languageVersion": "2.0"
}
],
"generated": "2020-05-13T02:22:14.501535Z",
"generated": "2020-05-18T10:01:14.006528Z",
"generator": "pub",
"generatorVersion": "2.7.2"
}

@ -1,4 +1,4 @@
# Generated by pub on 2020-05-13 10:22:14.477463.
# Generated by pub on 2020-05-18 18:01:13.982490.
analyzer:file:///Applications/flutter/.pub-cache/hosted/pub.flutter-io.cn/analyzer-0.37.0/lib/
args:file:///Applications/flutter/.pub-cache/hosted/pub.flutter-io.cn/args-1.5.2/lib/
async:file:///Applications/flutter/.pub-cache/hosted/pub.flutter-io.cn/async-2.3.0/lib/

@ -1,3 +1,5 @@
## 0.5.6
+ 修复iOS点击本地通知的通知栏消息缺少extras 字段
## 0.5.5
+ 适配iOS点击本地通知的通知栏消息响应事件
+ 更新最新Android SDK

@ -16,7 +16,7 @@ dependencies:
// pub 集成
dependencies:
jpush_flutter: 0.5.5
jpush_flutter: 0.5.6
```
### 配置

@ -157,7 +157,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.5.5"
version: "0.5.6"
js:
dependency: transitive
description:

@ -625,6 +625,13 @@ static NSMutableArray<FlutterResult>* getRidResults;
[dic setValue:identifier?:@"" forKey:@"identifier"];
[dic setValue:threadIdentifier?:@"" forKey:@"threadIdentifier"];
[dic setValue:categoryIdentifier?:@"" forKey:@"categoryIdentifier"];
if (userInfo && userInfo.count) {
NSMutableDictionary *extras = [NSMutableDictionary dictionary];
for (NSString *key in userInfo) {
extras[key] = userInfo[key];
}
dic[@"extras"] = extras;
}
dispatch_async(dispatch_get_main_queue(), ^{
[self.channel invokeMethod:@"onOpenNotification" arguments:dic];
});

@ -1,6 +1,6 @@
name: jpush_flutter
description: JIGUANG officially supported JPush Flutter plugin (Android & iOS). 极光推送官方支持的 Flutter 插件Android & iOS(https://www.jiguang.cn).
version: 0.5.5
version: 0.5.6
author: xudong.rao <xudong.rao@outlook.com>
homepage: https://www.jiguang.cn

Loading…
Cancel
Save