From ea0b1e8e5f43c5fd0a7d479e25ede3b8cbea464a Mon Sep 17 00:00:00 2001
From: wxr <wxr@hdlchina.com.cn>
Date: 星期一, 02 十二月 2024 17:17:19 +0800
Subject: [PATCH] tcp;可视对讲;

---
 HDL-ON_Android/Other/JPush/JPushReceiver.cs |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/HDL-ON_Android/Other/JPush/JPushReceiver.cs b/HDL-ON_Android/Other/JPush/JPushReceiver.cs
index 7466a21..ac68a0f 100644
--- a/HDL-ON_Android/Other/JPush/JPushReceiver.cs
+++ b/HDL-ON_Android/Other/JPush/JPushReceiver.cs
@@ -1,5 +1,6 @@
 锘�
 using System;
+using Android.App;
 using Android.Content;
 using CN.Jpush.Android.Api;
 using CN.Jpush.Android.Service;
@@ -49,11 +50,8 @@
         /// <param name="notificationMessage"></param>
         public override void OnNotifyMessageOpened(Context context, NotificationMessage notificationMessage)
         {
-
-
             //2020-12-23 瑙e喅鐐瑰嚮閫氱煡鏍忔墦寮�涓嶄簡APP闂
-            //base.OnNotifyMessageOpened(context, notificationMessage);
-            OpenNotification(context, notificationMessage);
+            OpenNotification(context, notificationMessage,true);
         }
 
         /// <summary>
@@ -138,7 +136,7 @@
         /// </summary>
         /// <param name="context"></param>
         /// <param name="notificationMessage"></param>
-        public static void OpenNotification(Context context, NotificationMessage notificationMessage)
+        public static void OpenNotification(Context context, NotificationMessage notificationMessage, bool isNotification = false)
         {
             try
             {
@@ -146,7 +144,8 @@
                 {
                     Title = notificationMessage.NotificationTitle,
                     Content = notificationMessage.NotificationContent,
-                    Extras = notificationMessage.NotificationExtras
+                    Extras = notificationMessage.NotificationExtras,
+                    isNotificationGoing = isNotification
                 };
 
                 var jpushExpandData = GetJPushExpandData(pushMes);

--
Gitblit v1.8.0