// // 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) { RollbarHelper.ConfigureRollbarSingleton(); //START: Let's subscribe to all known unhandled exception events application-wide... RollbarHelper.RegisterForGlobalExceptionHandling(); //END. global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
// // 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) { // Rollbar notifier configuartion RollbarHelper.ConfigureRollbarSingleton(); // Registers for global exception handling. RollbarHelper.RegisterForGlobalExceptionHandling(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(app, options)); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { RollbarHelper.ConfigureRollbar(); RollbarLocator.RollbarInstance .Info("Xamarin.Forms sample: Hello world! Xamarin is here..."); //START: Let's subscribe to all known unhandled exception events application-wide... RollbarHelper.RegisterForGlobalExceptionHandling(); this.UnhandledException += App_UnhandledException; //END. this.InitializeComponent(); this.Suspending += OnSuspending; }
protected override void OnCreate(Bundle bundle) { RollbarHelper.ConfigureRollbarSingleton(); // First informational log via Rollbar: RollbarLocator.RollbarInstance .Info("Xamarin.Forms sample: Hello world! Xamarin is here @MainActivity.OnCreate(...) ..."); //START: Let's subscribe to all known unhandled exception events application-wide... RollbarHelper.RegisterForGlobalExceptionHandling(); AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser; //END. TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { // Rollbar notifier configuartion RollbarHelper.ConfigureRollbarSingleton(); // Registers for global exception handling. RollbarHelper.RegisterForGlobalExceptionHandling(); AndroidEnvironment.UnhandledExceptionRaiser += (sender, args) => { var newExc = new ApplicationException("AndroidEnvironment_UnhandledExceptionRaiser", args.Exception); RollbarHelper.RollbarInstance.AsBlockingLogger(TimeSpan.FromSeconds(10)).Critical(newExc); }; TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App(new AndroidInitializer())); }