Exemple #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            NSError error;

#if TESTFLIGHT
            Analytics.SharedTracker.StartTracker("UA-31324545-3", 120, null);
            Analytics.SharedTracker.SetReferrer("TestFlight", out error);

            TestFlight.TakeOff("88e03730ca852e81d199baba95b9fc61_MTAxMDc3MjAxMi0wNi0xNyAyMzo0OToxNy44NzEzOTI");
#endif
#if APPSTORE
            Analytics.SharedTracker.StartTracker("UA-31324545-3", 120, null);
            Flurry.StartSession("M3QY6NMPR8H9HSWT6YSM");
            Flurry.SetSessionReportsOnPause(true);
#endif

            Analytics.SharedTracker.TrackPageView("/launched", out error);

            StoreHelper.Load();

            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.MakeKeyAndVisible();

            if (selectedFilePathArray == null)
            {
                selectedFilePathArray = new List <string> ();
            }

            ShowSecretsView();

            server.TransferEvent += Paste;

            return(true);
        }
Exemple #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //ALWAYS enable AppCircle, and THEN start Session, THEN set Delegate

            AppCircle.SetEnabled(true);
            Analytics.StartSession(API_KEY);

            _appCircleDelegate = new AppCircleDelegate();
            AppCircle.SetAppCircleDelegate(_appCircleDelegate);

            //THENNN start regular code

            _window = new UIWindow(UIScreen.MainScreen.Bounds);
            var root = new RootViewController();

            _window.RootViewController = root;

            _window.MakeKeyAndVisible();
            return(true);
        }