From 83f5dcf34d961ac18cf393a21687bf5aca199181 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期五, 11 三月 2022 09:26:50 +0800 Subject: [PATCH] 引入全视通dll库 --- ZigbeeApp/Home.Ios/AppDelegate.cs | 30 ++++++++++++++++++++---------- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Home.Ios/AppDelegate.cs b/ZigbeeApp/Home.Ios/AppDelegate.cs old mode 100755 new mode 100644 index 5f7c60e..58c9d0b --- 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; @@ -7,7 +7,6 @@ using Shared.Common; using Shared.IOS.TBL; using UIKit; - namespace Home.IOS { [Register("AppDelegate")] @@ -25,6 +24,8 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { + //Shared.IOS.HDLFVSDK.Video.FVapplication(application, launchOptions); + Shared.IOS.HDLFVSDK.Video.ShowVideo(); Shared.Application.IsGpsEnable = false; Shared.Application.IsMusicEnable = false; base.FinishedLaunching(application, launchOptions); @@ -39,7 +40,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 +62,10 @@ if (!string.IsNullOrEmpty(hiddenJson)) { if (hiddenJson.Contains("cmtID")) - { - - ///鐩墠鏍规嵁杩欎釜鍒ゆ柇鏄惁鏄彲瑙嗗璁叉暟鎹� - // VideoMethod(hiddenJson); + { + + ///鐩墠鏍规嵁杩欎釜鍒ゆ柇鏄惁鏄彲瑙嗗璁叉暟鎹� + // VideoMethod(hiddenJson); } else { @@ -87,15 +92,16 @@ } } } - - + + } } } } AppCenter.Start("0ca801a2-742b-42fb-ba10-7ba4391371aa", typeof(Analytics), typeof(Crashes)); - GDMapKit.setGDApiKey("866fae25f336bc8d9a79b1d19267fffb");//楂樺痉鍦板浘key + GDMapKit.setGDApiKey("3889cdfa4ef10c0d43348ffa2c1017c8");//楂樺痉鍦板浘key + return true; } @@ -275,6 +281,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