protected override void OnCreate(Bundle bundle) { Instance = this; TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Rg.Plugins.Popup.Popup.Init(this); Forms.Init(this, bundle); CrossCurrentActivity.Current.Init(this, bundle); Platform.Init(this); CrossCurrentActivity.Current.Activity = this; ImageCircleRenderer.Init(); UserDialogs.Init(this); Xamarin.Essentials.Platform.Init(this, bundle); Bootstrapper.Initialize(); RegisterPlatformServices(); LoadApplication(new App()); App.ScreenHeight = (int)(Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density); App.ScreenWidth = (int)(Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density); var intent = new Intent(ApplicationContext, typeof(NotificationService)); StartService(intent); }