update to 0.0.10

master
huangminlinux 6 years ago
parent e6421eca68
commit 638e48a7f1

@ -1,3 +1,8 @@
## 0.0.10
iOS: 修复 getLaunchAppNotification 返回 null 的情况。
featurn: APNS 推送字段将 extras 字段移动到 notification.extras 中和 android 保持一致。
## 0.0.9
android: 修复 JPushReceiver 类型转换的错误。

@ -1,6 +1,6 @@
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
#include <jpush_flutter/JPushPlugin.h>
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application

@ -39,18 +39,18 @@ final JPush jpush = new JPush();
debug: true,
);
jpush.applyPushAuthority(new NotificationSettingsIOS(
sound: false,
alert: false,
badge: false));
sound: true,
alert: true,
badge: true));
try {
jpush.addEventHandler(
onReceiveNotification: (Map<String, dynamic> message) async {
// print("flutter onReceiveNotification: $message");
// setState(() {
// _platformVersion = "flutter onReceiveNotification: $message";
// });
print("flutter onReceiveNotification: $message");
setState(() {
debugLable = "flutter onReceiveNotification: $message";
});
},
onOpenNotification: (Map<String, dynamic> message) async {
print("flutter onOpenNotification: $message");
@ -60,7 +60,9 @@ final JPush jpush = new JPush();
},
onReceiveMessage: (Map<String, dynamic> message) async {
print("flutter onReceiveMessage: $message");
setState(() {
debugLable = "flutter onReceiveMessage: $message";
});
},
);

@ -1,6 +1,6 @@
name: jpush_flutter
description: Offically supported JPush Flutter plugin.
version: 0.0.9
version: 0.0.10
author: huminios <h380108184@gmail.com>
homepage: https://www.jiguang.cn

Loading…
Cancel
Save