|
@@ -31,6 +31,11 @@ class JpushHelper {
|
|
|
_jpush.addEventHandler(
|
|
_jpush.addEventHandler(
|
|
|
onReceiveNotification: (Map<String, dynamic> message) async {
|
|
onReceiveNotification: (Map<String, dynamic> message) async {
|
|
|
AtmobLog.d(tag, "flutter onReceiveNotification: $message");
|
|
AtmobLog.d(tag, "flutter onReceiveNotification: $message");
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ onOpenNotification: (Map<String, dynamic> message) async {
|
|
|
|
|
+ AtmobLog.d(tag, "flutter onOpenNotification: $message");
|
|
|
if (Get.isRegistered<MainController>() &&
|
|
if (Get.isRegistered<MainController>() &&
|
|
|
Get.currentRoute != RoutePath.newDiscount) {
|
|
Get.currentRoute != RoutePath.newDiscount) {
|
|
|
NewDiscountPage.start();
|
|
NewDiscountPage.start();
|
|
@@ -38,9 +43,6 @@ class JpushHelper {
|
|
|
//清除应用图标角标数量
|
|
//清除应用图标角标数量
|
|
|
_jpush.setBadge(-1);
|
|
_jpush.setBadge(-1);
|
|
|
},
|
|
},
|
|
|
- onOpenNotification: (Map<String, dynamic> message) async {
|
|
|
|
|
- AtmobLog.d(tag, "flutter onOpenNotification: $message");
|
|
|
|
|
- },
|
|
|
|
|
onReceiveMessage: (Map<String, dynamic> message) async {
|
|
onReceiveMessage: (Map<String, dynamic> message) async {
|
|
|
AtmobLog.d(tag, "flutter onReceiveMessage: $message");
|
|
AtmobLog.d(tag, "flutter onReceiveMessage: $message");
|
|
|
},
|
|
},
|