From 9ca2281d589fbd4b35177d1846974f17d12095ae Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 16 四月 2020 15:12:02 +0800
Subject: [PATCH] 2020-04-16 1.更新

---
 Crabtree/ON/MyReceiver.cs |  114 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 57 insertions(+), 57 deletions(-)

diff --git a/Crabtree/ON/MyReceiver.cs b/Crabtree/ON/MyReceiver.cs
index 72f8c3f..a299a0c 100644
--- a/Crabtree/ON/MyReceiver.cs
+++ b/Crabtree/ON/MyReceiver.cs
@@ -1,61 +1,61 @@
-锘縰sing System;
-using Android.Content;
-using Android.OS;
-using CN.Jpush.Android.Api;
-using CN.Jpush.Android.Service;
+锘�//using System;
+//using Android.Content;
+//using Android.OS;
+//using CN.Jpush.Android.Api;
+//using CN.Jpush.Android.Service;
 
-namespace com.hdl.on
-{
-    //<receiver android:name="com.hdl.on.MyReceiver" android:exported="false" android:enabled="true" android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
-    //    <intent-filter>
-    //        <action android:name="cn.jpush.android.intent.REGISTRATION" />
-    //        <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
-    //        <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
-    //        <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
-    //        <action android:name="cn.jpush.android.intent.CONNECTION" />
-    //        <category android:name="com.hdl.on" />
-    //        <action android:name="android.intent.action.BOOT_COMPLETED"></action>
-    //        <category android:name="android.intent.category.LAUNCHER" />
-    //        <action android:name="android.intent.action.USER_PRESENT" />
-    //        <action android:name="android.media.RINGER_MODE_CHANGED" />
-    //    </intent-filter>
-    //</receiver>
-    /*
-  *鍒涘缓涓�涓箍鎾�
- * 鑷畾涔夋帴鏀跺櫒
- * 濡傛灉涓嶅畾涔夎繖涓� Receiver锛屽垯锛�
- *  1) 榛樿鐢ㄦ埛浼氭墦寮�涓荤晫闈� 
- *  2) 鎺ユ敹涓嶅埌鑷畾涔夋秷鎭�
- */
-    //[BroadcastReceiver]
-    //[IntentFilter(new string []{"cn.jpush.android.intent.REGISTRATION", "cn.jpush.android.intent.MESSAGE_RECEIVED","cn.jpush.android.intent.NOTIFICATION_RECEIVED","cn.jpush.android.intent.NOTIFICATION_OPENED","cn.jpush.android.intent.CONNECTION"})]
-    public class MyReceiver : BroadcastReceiver
-    {
-        static string ACTION = "android.intent.action.BOOT_COMPLETED";
+//namespace com.hdl.on
+//{
+//    //<receiver android:name="com.hdl.on.MyReceiver" android:exported="false" android:enabled="true" android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
+//    //    <intent-filter>
+//    //        <action android:name="cn.jpush.android.intent.REGISTRATION" />
+//    //        <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" />
+//    //        <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" />
+//    //        <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" />
+//    //        <action android:name="cn.jpush.android.intent.CONNECTION" />
+//    //        <category android:name="com.hdl.on" />
+//    //        <action android:name="android.intent.action.BOOT_COMPLETED"></action>
+//    //        <category android:name="android.intent.category.LAUNCHER" />
+//    //        <action android:name="android.intent.action.USER_PRESENT" />
+//    //        <action android:name="android.media.RINGER_MODE_CHANGED" />
+//    //    </intent-filter>
+//    //</receiver>
+//    /*
+//  *鍒涘缓涓�涓箍鎾�
+// * 鑷畾涔夋帴鏀跺櫒
+// * 濡傛灉涓嶅畾涔夎繖涓� Receiver锛屽垯锛�
+// *  1) 榛樿鐢ㄦ埛浼氭墦寮�涓荤晫闈� 
+// *  2) 鎺ユ敹涓嶅埌鑷畾涔夋秷鎭�
+// */
+//    //[BroadcastReceiver]
+//    //[IntentFilter(new string []{"cn.jpush.android.intent.REGISTRATION", "cn.jpush.android.intent.MESSAGE_RECEIVED","cn.jpush.android.intent.NOTIFICATION_RECEIVED","cn.jpush.android.intent.NOTIFICATION_OPENED","cn.jpush.android.intent.CONNECTION"})]
+//    public class MyReceiver : BroadcastReceiver
+//    {
+//        static string ACTION = "android.intent.action.BOOT_COMPLETED";
 
-        public override void OnReceive (Context context, Intent intent)
-        {
-            Bundle bundle = intent.Extras;
+//        public override void OnReceive (Context context, Intent intent)
+//        {
+//            Bundle bundle = intent.Extras;
 
-            if (intent.Action == ACTION) {
-                //寮�鏈鸿嚜鍔ㄦ湇鍔¤嚜鍔ㄥ惎鍔�,PushService鏄鍚姩鐨勬湇鍔�  
-                Intent service = new Intent (context, typeof (PushService));
-                context.StartService (service);
-            }
+//            if (intent.Action == ACTION) {
+//                //寮�鏈鸿嚜鍔ㄦ湇鍔¤嚜鍔ㄥ惎鍔�,PushService鏄鍚姩鐨勬湇鍔�  
+//                Intent service = new Intent (context, typeof (PushService));
+//                context.StartService (service);
+//            }
 
-            //鎺ユ敹Registration Id
-            if (JPushInterface.ActionRegistrationId == intent.Action) {
-                string regId = bundle.GetString (JPushInterface.ExtraRegistrationId);
-            }
-            //鐢ㄦ埛鐐瑰嚮鎵撳紑浜嗛�氱煡
-            else if (JPushInterface.ActionNotificationOpened == intent.Action) {
-                Application.IsShowTip = false;
-                Intent i = new Intent (context, typeof (Shared.BaseActivity));//Intent intent=new Intent( 璧峰缁勪欢瀵硅薄 , 鐩爣 Service.class);
-                i.PutExtras (bundle);
-                i.SetFlags (ActivityFlags.NewTask);
-                context.StartActivity (i);
-            } else {
-            }
-        }
-    }
-}
+//            //鎺ユ敹Registration Id
+//            if (JPushInterface.ActionRegistrationId == intent.Action) {
+//                string regId = bundle.GetString (JPushInterface.ExtraRegistrationId);
+//            }
+//            //鐢ㄦ埛鐐瑰嚮鎵撳紑浜嗛�氱煡
+//            else if (JPushInterface.ActionNotificationOpened == intent.Action) {
+//                Application.IsShowTip = false;
+//                Intent i = new Intent (context, typeof (Shared.BaseActivity));//Intent intent=new Intent( 璧峰缁勪欢瀵硅薄 , 鐩爣 Service.class);
+//                i.PutExtras (bundle);
+//                i.SetFlags (ActivityFlags.NewTask);
+//                context.StartActivity (i);
+//            } else {
+//            }
+//        }
+//    }
+//}

--
Gitblit v1.8.0