From 17bf9921d0432fcab9d43ed256f02334e1cf6755 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期二, 29 三月 2022 10:27:34 +0800 Subject: [PATCH] 1.封装新的全视通dll 2.更新TBL.dll、IOS.dll库 --- ZigbeeApp/Home.Ios/AppDelegate.cs | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Home.Ios/AppDelegate.cs b/ZigbeeApp/Home.Ios/AppDelegate.cs index 8fad469..81c715d 100644 --- a/ZigbeeApp/Home.Ios/AppDelegate.cs +++ b/ZigbeeApp/Home.Ios/AppDelegate.cs @@ -25,6 +25,10 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { + //鍏ㄨ閫氳皟鐢‵inishedLaunch + Shared.IOS.HDLFVSDK.Video.FVapplication(application,new NSDictionary()); + + Shared.Application.IsGpsEnable = false; Shared.Application.IsMusicEnable = false; base.FinishedLaunching(application, launchOptions); @@ -39,11 +43,16 @@ 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) { + // check for a remote notification if (launchOptions.ContainsKey(UIApplication.LaunchOptionsRemoteNotificationKey)) { @@ -95,7 +104,7 @@ } } AppCenter.Start("0ca801a2-742b-42fb-ba10-7ba4391371aa", typeof(Analytics), typeof(Crashes)); - GDMapKit.setGDApiKey("866fae25f336bc8d9a79b1d19267fffb");//楂樺痉鍦板浘key + GDMapKit.setGDApiKey("3889cdfa4ef10c0d43348ffa2c1017c8");//楂樺痉鍦板浘key return true; } @@ -263,6 +272,7 @@ // or when the user quits the application and it begins the transition to the background state. // Games should use this method to pause the game. base.OnResignActivation(application); + Shared.IOS.HDLFVSDK.Video.FVapplicationWillResignActive(application); } public override void DidEnterBackground(UIApplication application) @@ -272,6 +282,7 @@ //Shared.BusSocket.Stop ();On鍦ㄨ繖閲屽仠姝usSocket ZigBee.Common.Application.FindGateWaySocket.Stop(); base.DidEnterBackground(application); + Shared.IOS.HDLFVSDK.Video.FVapplicationDidEnterBackground(application); } public override void WillEnterForeground(UIApplication application) @@ -287,8 +298,11 @@ base.WillEnterForeground(application); } + public override void OnActivated(UIApplication application) { + //鍏ㄨ閫氳皟鐢˙ecomeActive + Shared.IOS.HDLFVSDK.Video.FVapplicationDidBecomeActive(application); // Restart any tasks that were paused (or not yet started) while the application was inactive. // If the application was previously in the background, optionally refresh the user interface. base.OnActivated(application); -- Gitblit v1.8.0