// This is the main entry point of the application. static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += (sender, arg) => { AppStart.OnUnhandledException(arg.ExceptionObject as Exception, arg.IsTerminating); }; Xamarin.Insights.Initialize(Settings.Default.XamarinInsights); UIApplication.Main(args, null, "AppDelegate"); }
public override void OnCreate() { base.OnCreate(); AppDomain.CurrentDomain.UnhandledException += (sender, args) => AppStart.OnUnhandledException(args.ExceptionObject as Exception, args.IsTerminating); Insights.Initialize(Settings.Default.XamarinInsights, this); RegisterActivityLifecycleCallbacks(MvxFormsActivityLifecycleCallbacks.Instance); }