Merge pull request #156 from raoxudong/dev

修复通知栏缺少extras字段
master
raoxudong 5 years ago committed by GitHub
commit 5bc5953c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -332,7 +332,7 @@
"languageVersion": "2.0" "languageVersion": "2.0"
} }
], ],
"generated": "2020-05-13T02:22:14.501535Z", "generated": "2020-05-18T10:01:14.006528Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "2.7.2" "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/ 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/ 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/ 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 ## 0.5.5
+ 适配iOS点击本地通知的通知栏消息响应事件 + 适配iOS点击本地通知的通知栏消息响应事件
+ 更新最新Android SDK + 更新最新Android SDK

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

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

@ -625,6 +625,13 @@ static NSMutableArray<FlutterResult>* getRidResults;
[dic setValue:identifier?:@"" forKey:@"identifier"]; [dic setValue:identifier?:@"" forKey:@"identifier"];
[dic setValue:threadIdentifier?:@"" forKey:@"threadIdentifier"]; [dic setValue:threadIdentifier?:@"" forKey:@"threadIdentifier"];
[dic setValue:categoryIdentifier?:@"" forKey:@"categoryIdentifier"]; [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(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[self.channel invokeMethod:@"onOpenNotification" arguments:dic]; [self.channel invokeMethod:@"onOpenNotification" arguments:dic];
}); });

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

Loading…
Cancel
Save