From 0b3b44ed26ce26ac5852374f7c7e459e7dbdf1c3 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期四, 04 十一月 2021 14:45:58 +0800
Subject: [PATCH] 编辑场景成功之后,取消之前的执行动作
---
HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs | 41 +++++++++++++++++++++++++++++++----------
1 files changed, 31 insertions(+), 10 deletions(-)
diff --git a/HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs b/HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs
index dcf1789..d563368 100644
--- a/HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs
+++ b/HDL-ON_Android/Other/JPush/JPushFirmBroadcast.cs
@@ -1,15 +1,11 @@
-锘縰sing Android.App;
+锘�
using Android.Content;
-using Android.OS;
-using Android.Runtime;
-using Android.Views;
-using Android.Widget;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-namespace JPushSample
+using System;
+
+using CN.Jpush.Android.Api;
+
+namespace HDL_ON_Android
{
[BroadcastReceiver(Enabled = true, Exported = false, Name = "com.hdl.onpro.JPushFirmBroadcast")]
@@ -34,6 +30,31 @@
cn.jpush.android.TITLE,
cn.jpush.android.MESSAGE*/
+ try
+ {
+ NotificationMessage notificationMessage = new NotificationMessage();
+ String extra = intent.GetStringExtra(JPushInterface.ExtraExtra);
+ String msgId = intent.GetStringExtra(JPushInterface.ExtraMsgId);
+
+ String message = intent.GetStringExtra(JPushInterface.ExtraMessage);
+ String title = intent.GetStringExtra(JPushInterface.ExtraTitle);
+ // String typePlatform = intent.GetStringExtra(JPushInterface.ExtraTypePlatform);
+
+ notificationMessage.NotificationTitle = title;
+ notificationMessage.NotificationContent = message;
+ notificationMessage.NotificationExtras = extra;
+
+ JPushReceiver.OpenNotification(context, notificationMessage);
+
+ }
+ catch
+ {
+
+ }
+
+
+
+
}
}
--
Gitblit v1.8.0