//
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            LoadApplication(new App());
            Firebase.Core.App.Configure();

            Crashlytics.Configure();
            Fabric.Fabric.SharedSdk.Debug = true;

            try
            {
                string division = "string";
                int    value    = Convert.ToInt32(division);
            }
            catch (Exception ex)
            {
                var crashInfo = new Dictionary <object, object>
                {
                    [NSError.LocalizedDescriptionKey] = ex.Message,
                    ["StackTrace"] = ex.StackTrace
                };

                var error = new NSError(new NSString(ex.GetType().FullName),
                                        -1,
                                        NSDictionary.FromObjectsAndKeys(crashInfo.Values.ToArray(), crashInfo.Keys.ToArray(), crashInfo.Count));


                Crashlytics.SharedInstance.RecordError(error);
                // var crashReporting = DependencyService.Get<ICrashReporting>();

                //crashReporting.CrashReportingInit();
            }
            return(base.FinishedLaunching(app, options));
        }
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.LightContent;

            App.Configure();
            Crashlytics.Configure();

            Fabric.Fabric.SharedSdk.Debug = true;

            return(true);
        }
Example #3
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());
            Firebase.Core.App.Configure();
            Crashlytics.Configure();
            //Linker please include
            var unusedLinkerPleaseInclude = Firebase.Core.Configuration.SharedInstance;

            RegisterRemoteNotifications();
            return(base.FinishedLaunching(app, options));
        }
Example #4
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.SetFlags("CarouselView_Experimental", "IndicatorView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            VersionTracking.Track();
            Firebase.Core.App.Configure();
            Crashlytics.Configure();

            LoadApplication(new App(TinyIoCContainer.Current, ConfigureContainer));

            return(base.FinishedLaunching(app, options));
        }
Example #5
0
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Firebase.Core.App.Configure();
            Crashlytics.Configure();
            Rg.Plugins.Popup.Popup.Init();

            global::Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();
            Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #6
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Firebase.Core.App.Configure();
            Crashlytics.Configure();

            AiForms.Renderers.iOS.CollectionViewInit.Init();
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
            Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
            Rg.Plugins.Popup.Popup.Init();

            global::Xamarin.Forms.Forms.Init();

            _app = new App(new iOSInitializer());
            LoadApplication(_app);

            return(base.FinishedLaunching(app, options));
        }
        /// <summary>
        /// Crashalytics reporting initialize
        /// </summary>
        /// <returns><c>true</c>, if reporting init failed, <c>false</c> otherwise worked OK.</returns>
        public bool CrashReportingInit()
        {
            try
            {
                Firebase.Core.App.Configure();

                Crashlytics.Configure();
                //Fabric.Fabric.SharedSdk.Debug = true;

                Fabric.Fabric.With(typeof(Crashlytics));
            }
            catch (Exception exception)
            {
                System.Diagnostics.Debug.WriteLine("CrashReportingInit - " +
                                                   " failed - " + exception.Message);
                return(true);
            }

            return(false);
        }