wxr
2024-07-25 7b390821384948a6541ee31ce2842d727c1670a9
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>