From 351bdda734832d821a9764b0cde8be5d83c4ec50 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 01 十二月 2022 09:56:25 +0800
Subject: [PATCH] 2022年12月01日09:56:23

---
 ZigbeeApp/Home.Ios/AppDelegate.cs |   27 ++++++++++++++++++---------
 1 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Home.Ios/AppDelegate.cs b/ZigbeeApp/Home.Ios/AppDelegate.cs
index 5f7c60e..92b466c 100755
--- a/ZigbeeApp/Home.Ios/AppDelegate.cs
+++ b/ZigbeeApp/Home.Ios/AppDelegate.cs
@@ -1,4 +1,4 @@
-锘縰sing System;
+锘縰sing System;
 using Foundation;
 using Microsoft.AppCenter;
 using Microsoft.AppCenter.Analytics;
@@ -39,7 +39,11 @@
 
             DeviceTokenAction += (deviceToken) =>
             {
-                Shared.Common.Config.Instance.RegistrationID = deviceToken;
+                if (!string.IsNullOrEmpty(deviceToken))
+                {
+                    Shared.Common.Config.Instance.RegistrationID = deviceToken;
+                    Shared.Common.Config.Instance.Save();
+                }
             };
             haveToSignOut = false;
             if (launchOptions != null)
@@ -57,10 +61,10 @@
                             if (!string.IsNullOrEmpty(hiddenJson))
                             {
                                 if (hiddenJson.Contains("cmtID"))
-                                {
-                                    
-                                        ///鐩墠鏍规嵁杩欎釜鍒ゆ柇鏄惁鏄彲瑙嗗璁叉暟鎹�
-                                       // VideoMethod(hiddenJson);
+                                {
+
+                                    ///鐩墠鏍规嵁杩欎釜鍒ゆ柇鏄惁鏄彲瑙嗗璁叉暟鎹�
+                                    // VideoMethod(hiddenJson);
                                 }
                                 else
                                 {
@@ -87,15 +91,16 @@
                                     }
                                 }
                             }
-
-                           
+
+
                         }
 
                     }
                 }
             }
             AppCenter.Start("0ca801a2-742b-42fb-ba10-7ba4391371aa", typeof(Analytics), typeof(Crashes));
-            GDMapKit.setGDApiKey("866fae25f336bc8d9a79b1d19267fffb");//楂樺痉鍦板浘key
+            GDMapKit.setGDApiKey("3889cdfa4ef10c0d43348ffa2c1017c8");//楂樺痉鍦板浘key
+
             return true;
         }
 
@@ -275,6 +280,10 @@
 
         public override void WillEnterForeground(UIApplication application)
         {
+            var internetStatus = GateWay.Ios.Reachability.InternetConnectionStatus();
+            Shared.Phone.UserCenter.HdlWifiLogic.Current.NetworkStateChanged((int)internetStatus);
+
+            //ZigBee.Common.Application.FindGateWaySocket.Start();
             // Called as part of the transiton from background to active state.
             // Here you can undo many of the changes made on entering the background.
             System.Console.WriteLine("WillEnterForeground");

--
Gitblit v1.8.0