| | |
| | | |
| | | internal static UINavigationController rootViewController; |
| | | |
| | | |
| | | public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) |
| | | { |
| | | Shared.Application.IsGpsEnable = false; |
| | |
| | | Window.MakeKeyAndVisible(); |
| | |
|
| | | Shared.IOS.TBL.WXApi.RegisterApp("wx2ec8f53f6fa36e82", "https://hdlcontrol.com/ZigbeeApp/");
|
| | | Console.WriteLine("FinishedLaunching"); |
| | | |
| | | DeviceTokenAction += (deviceToken) => |
| | | { |
| | | Shared.Common.Config.Instance.RegistrationID = deviceToken; |
| | |
| | | } |
| | | AppCenter.Start("0ca801a2-742b-42fb-ba10-7ba4391371aa", typeof(Analytics), typeof(Crashes)); |
| | | GDMapKit.setGDApiKey("3889cdfa4ef10c0d43348ffa2c1017c8");//高德地图key |
| | | |
| | | return true; |
| | | } |
| | | |
| | |
| | | } |
| | | public override void DidReceiveRemoteNotification(UIApplication application, NSDictionary userInfo, Action<UIBackgroundFetchResult> completionHandler) |
| | | { |
| | | Console.WriteLine("DidReceiveRemoteNotification"); |
| | | if (userInfo == null) |
| | | { |
| | | return; |
| | | } |
| | | Console.WriteLine(userInfo); |
| | | |
| | | if (application.ApplicationState == UIApplicationState.Active || application.ApplicationState == UIApplicationState.Background)// |
| | | if (application.ApplicationState == UIApplicationState.Active || application.ApplicationState == UIApplicationState.Background) |
| | | { |
| | | NSString key_hiddenJson = new NSString("HiddenJson"); |
| | | if (userInfo.ContainsKey(key_hiddenJson)) |
| | |
| | | |
| | | 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"); |