Skip to content

Commit 638e48a

Browse files
committed
update to 0.0.10
1 parent e6421ec commit 638e48a

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.0.10
2+
3+
iOS: 修复 getLaunchAppNotification 返回 null 的情况。
4+
featurn: APNS 推送字段将 extras 字段移动到 notification.extras 中和 android 保持一致。
5+
16
## 0.0.9
27

38
android: 修复 JPushReceiver 类型转换的错误。

example/ios/Runner/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "AppDelegate.h"
22
#include "GeneratedPluginRegistrant.h"
3-
3+
#include <jpush_flutter/JPushPlugin.h>
44
@implementation AppDelegate
55

66
- (BOOL)application:(UIApplication *)application

example/lib/main.dart

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ final JPush jpush = new JPush();
3939
debug: true,
4040
);
4141
jpush.applyPushAuthority(new NotificationSettingsIOS(
42-
sound: false,
43-
alert: false,
44-
badge: false));
42+
sound: true,
43+
alert: true,
44+
badge: true));
4545

4646
try {
4747

4848
jpush.addEventHandler(
4949
onReceiveNotification: (Map<String, dynamic> message) async {
50-
// print("flutter onReceiveNotification: $message");
51-
// setState(() {
52-
// _platformVersion = "flutter onReceiveNotification: $message";
53-
// });
50+
print("flutter onReceiveNotification: $message");
51+
setState(() {
52+
debugLable = "flutter onReceiveNotification: $message";
53+
});
5454
},
5555
onOpenNotification: (Map<String, dynamic> message) async {
5656
print("flutter onOpenNotification: $message");
@@ -60,7 +60,9 @@ final JPush jpush = new JPush();
6060
},
6161
onReceiveMessage: (Map<String, dynamic> message) async {
6262
print("flutter onReceiveMessage: $message");
63-
63+
setState(() {
64+
debugLable = "flutter onReceiveMessage: $message";
65+
});
6466
},
6567
);
6668

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: jpush_flutter
22
description: Offically supported JPush Flutter plugin.
3-
version: 0.0.9
3+
version: 0.0.10
44
author: huminios <[email protected]>
55
homepage: https://www.jiguang.cn
66

0 commit comments

Comments
 (0)