File tree Expand file tree Collapse file tree 4 files changed +17
-10
lines changed
Expand file tree Collapse file tree 4 files changed +17
-10
lines changed Original file line number Diff line number Diff line change 1+ ## 0.0.10
2+
3+ iOS: 修复 getLaunchAppNotification 返回 null 的情况。
4+ featurn: APNS 推送字段将 extras 字段移动到 notification.extras 中和 android 保持一致。
5+
16## 0.0.9
27
38android: 修复 JPushReceiver 类型转换的错误。
Original file line number Diff line number Diff line change 11#include " AppDelegate.h"
22#include " GeneratedPluginRegistrant.h"
3-
3+ # include < jpush_flutter/JPushPlugin.h >
44@implementation AppDelegate
55
66- (BOOL )application : (UIApplication *)application
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11name : jpush_flutter
22description : Offically supported JPush Flutter plugin.
3- version : 0.0.9
3+ version : 0.0.10
44author :
huminios <[email protected] > 55homepage : https://www.jiguang.cn
66
You can’t perform that action at this time.
0 commit comments