Crabtree/ON.Ios/AppDelegate.cs
@@ -192,14 +192,14 @@
        {
            Utlis.WriteLine ("OnResignActivation");
            //Shared.BusSocket.Stop ();
            BusSocketStop ();
            //BusSocketStop ();
        }
        public override void DidEnterBackground (UIApplication application)
        {
            SharedMethod.SharedMethod.IsBackground = true;
            Utlis.WriteLine ("DidEnterBackground");
            //BusSocketStop ();
            BusSocketStop ();
        }
        public override void WillEnterForeground (UIApplication application)
@@ -211,7 +211,7 @@
            UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
            // Called as part of the transiton from background to active state.
            // Here you can undo many of the changes made on entering the background.
            //BusSocketStart ();
            BusSocketStart ();
        }
        public override void WillTerminate (UIApplication application)
@@ -225,7 +225,7 @@
            Utlis.WriteLine ("OnActivated");
            base.OnActivated (application);
            BusSocketStart ();
            //BusSocketStart ();
            ////有些系统版本这里启动比视图控制器快
            //if (!Shared.SimpleControl.MainPage.Showed) {
            //    System.Threading.Tasks.Task.Run (() => {