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 ## 0.0.9
android: 修复 JPushReceiver 类型转换的错误。 android: 修复 JPushReceiver 类型转换的错误。

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

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

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

Loading…
Cancel
Save