diff --git a/.dart_tool/package_config.json b/.dart_tool/package_config.json index 04b55b5..b81d105 100644 --- a/.dart_tool/package_config.json +++ b/.dart_tool/package_config.json @@ -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" } diff --git a/.packages b/.packages index 80a39af..2d39d9a 100644 --- a/.packages +++ b/.packages @@ -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/ diff --git a/CHANGELOG.md b/CHANGELOG.md index c3e41ec..d815213 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +## 0.5.6 ++ 修复:iOS点击本地通知的通知栏消息缺少extras 字段 ## 0.5.5 + 适配iOS点击本地通知的通知栏消息响应事件 + 更新最新Android SDK diff --git a/README.md b/README.md index 90921d7..c7cbd42 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ dependencies: // pub 集成 dependencies: - jpush_flutter: 0.5.5 + jpush_flutter: 0.5.6 ``` ### 配置 diff --git a/example/pubspec.lock b/example/pubspec.lock index c3123ec..8c75d99 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -157,7 +157,7 @@ packages: path: ".." relative: true source: path - version: "0.5.5" + version: "0.5.6" js: dependency: transitive description: diff --git a/ios/Classes/JPushPlugin.m b/ios/Classes/JPushPlugin.m index 2e6c504..7551da6 100644 --- a/ios/Classes/JPushPlugin.m +++ b/ios/Classes/JPushPlugin.m @@ -625,6 +625,13 @@ static NSMutableArray* 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]; }); diff --git a/pubspec.yaml b/pubspec.yaml index a72467d..1e6dbdc 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 homepage: https://www.jiguang.cn