using Microsoft.AppCenter;  
using Microsoft.AppCenter.Crashes;  
  
[assembly: XamlCompilation(XamlCompilationOptions.Compile)]  
namespace XamarinAppCenter  
{  
    public partial class App : Application  
    {  
        public App()  
        {  
            InitializeComponent();  
  
            MainPage = new MainPage();  
        }  
  
        protected override void OnStart()  
        {  
            // Handle when your app starts  
            AppCenter.Start("ios=d0bde07f-****-4e43-****-1fb50b1023fb;" +  
                  "uwp={Your UWP App secret here};" +  
                  "android={Your Android App secret here}",  
                            typeof(Crashes));  
        }  
  
        protected override void OnSleep()  
        {  
            // Handle when your app sleeps  
        }  
  
        protected override void OnResume()  
        {  
            // Handle when your app resumes  
        }  
    }  
}