From 7b390821384948a6541ee31ce2842d727c1670a9 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期四, 25 七月 2024 15:22:43 +0800 Subject: [PATCH] 极光Sdk --- HDL-ON_Android/Other/JPush/JPushReceiver.cs | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/HDL-ON_Android/Other/JPush/JPushReceiver.cs b/HDL-ON_Android/Other/JPush/JPushReceiver.cs index 7c725ec..5ce75eb 100644 --- a/HDL-ON_Android/Other/JPush/JPushReceiver.cs +++ b/HDL-ON_Android/Other/JPush/JPushReceiver.cs @@ -17,18 +17,21 @@ //}, //Categories = new string[] //{ - // "com.jinlu.onpro" + // "com.hdl.onpro" //})] - [Android.App.Service(Enabled = true, Exported = false)] - [Android.App.IntentFilter( - new string[] { "cn.jpush.android.intent.SERVICE_MESSAGE" }, - Categories = new string[] - { - "com.jinlu.onpro" - })] - public class JPushReceiver : JPushMessageService + //[Android.App.Service(Enabled = true)] + //[Android.App.IntentFilter( + // new string[] { "cn.jpush.android.intent.SERVICE_MESSAGE" }, + // Categories = new string[] + // { + // "com.hdl.onpro" + // })] + + [BroadcastReceiver(Enabled = true, Exported = true)] + [Android.App.IntentFilter(new string[] { "cn.jpush.android.intent.SERVICE_MESSAGE" }, Categories = new string[] { "com.hdl.onpro" })] + public class JPushReceiver : JPushMessageReceiver// JPushMessageService { @@ -130,7 +133,6 @@ public override void OnRegister(Context context, string p1) { base.OnRegister(context, p1); - Utlis.WriteLine("鏋佸厜鎺ㄩ��-娉ㄥ唽鎴愬姛鍥炶皟: " + p1); } /// <summary> -- Gitblit v1.8.0