old mode 100755
new mode 100644
| | |
| | | using System;
|
| | | using System; |
| | | using Foundation; |
| | | using Microsoft.AppCenter; |
| | | using Microsoft.AppCenter.Analytics; |
| | |
| | | |
| | | public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) |
| | | { |
| | | //全视通调用FinishedLaunch |
| | | Shared.IOS.HDLFVSDK.Video.FVapplication(application,new NSDictionary()); |
| | | |
| | | |
| | | Shared.Application.IsGpsEnable = false; |
| | | Shared.Application.IsMusicEnable = false; |
| | | base.FinishedLaunching(application, launchOptions); |
| | |
| | | |
| | | 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)) |
| | | { |
| | |
| | | if (!string.IsNullOrEmpty(hiddenJson))
|
| | | {
|
| | | if (hiddenJson.Contains("cmtID"))
|
| | | {
|
| | | |
| | | ///目前根据这个判断是否是可视对讲数据
|
| | | // VideoMethod(hiddenJson);
|
| | | { |
| | | |
| | | ///目前根据这个判断是否是可视对讲数据
|
| | | // VideoMethod(hiddenJson); |
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | } |
| | |
|
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | AppCenter.Start("0ca801a2-742b-42fb-ba10-7ba4391371aa", typeof(Analytics), typeof(Crashes)); |
| | | GDMapKit.setGDApiKey("866fae25f336bc8d9a79b1d19267fffb");//高德地图key |
| | | GDMapKit.setGDApiKey("3889cdfa4ef10c0d43348ffa2c1017c8");//高德地图key |
| | | |
| | | return true; |
| | | } |
| | | |
| | |
| | | } |
| | | public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler) |
| | | { |
| | | |
| | | if (userInfo == null) |
| | | { |
| | | //var alert = new Alert("", "userInfo为空", ""); |
| | | //alert.Show(); |
| | | return; |
| | | } |
| | | Console.WriteLine(userInfo); |
| | |
| | | if (application.ApplicationState == UIApplicationState.Active || application.ApplicationState == UIApplicationState.Background) |
| | | { |
| | | NSString key_hiddenJson = new NSString("HiddenJson"); |
| | | //var alert1 = new Alert("", "收到推送了", ""); |
| | | //alert1.Show(); |
| | | if (userInfo.ContainsKey(key_hiddenJson)) |
| | | { |
| | | var hiddenJson = userInfo["HiddenJson"].ToString();
|
| | | |
| | | var hiddenJson = userInfo["HiddenJson"].ToString(); |
| | | |
| | | //var alert = new Alert("", hiddenJson, ""); |
| | | //alert.Show();
|
| | |
|
| | | if (string.IsNullOrEmpty(hiddenJson))
|
| | | {
|
| | | return;
|
| | |
| | | {
|
| | |
|
| | | ///目前根据这个判断是否是可视对讲数据
|
| | | VideoMethod(hiddenJson);
|
| | | //VideoMethod(hiddenJson);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | if (hiddenJson.Contains("cmtID"))
|
| | | {
|
| | | ///目前根据这个判断是否是可视对讲数据
|
| | | VideoMethod(hiddenJson);
|
| | | //VideoMethod(hiddenJson);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | |
| | | public override void ReceivedRemoteNotification(UIApplication application, NSDictionary userInfo) |
| | | { |
| | | |
| | | Console.WriteLine(userInfo); |
| | | if (application.ApplicationState == UIApplicationState.Active) |
| | | { |
| | |
| | | // 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) |
| | |
| | | //Shared.BusSocket.Stop ();On在这里停止BusSocket |
| | | ZigBee.Common.Application.FindGateWaySocket.Stop(); |
| | | base.DidEnterBackground(application); |
| | | Shared.IOS.HDLFVSDK.Video.FVapplicationDidEnterBackground(application); |
| | | } |
| | | |
| | | 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"); |
| | |
| | | base.WillEnterForeground(application); |
| | | } |
| | | |
| | | |
| | | public override void OnActivated(UIApplication application) |
| | | { |
| | | //全视通调用BecomeActive |
| | | 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); |
| | |
| | | } |
| | | //检查连接远程 |
| | | //代码 |
| | | |
| | | //清除角标 |
| | | CommonPage.Instance.clearBadgeNum(); |
| | | } |
| | | |
| | | public override void WillTerminate(UIApplication application) |