HDL Home App 第二版本 旧平台金堂用 正在使用
wjc
2022-12-01 351bdda734832d821a9764b0cde8be5d83c4ec50
ZigbeeApp/Home.Ios/AppDelegate.cs
@@ -1,4 +1,4 @@
using System;
using 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");