protected override void OnStart() { // Handle when your app starts base.OnStart(); AppCenter.Start("android=817faa27-5418-4f2b-b55a-0013186c5482;" + "ios=575732ee-7291-4330-98b1-8f1c79713205;", typeof(Analytics), typeof(Crashes)); OnAppStarted?.Invoke(this, EventArgs.Empty); }
private void MREApp_OnAppStarted() { GD.Print("AppStarted"); OnAppStarted?.Invoke(this); if (AutoJoin) { UserJoin(); } }
private void MREApp_OnAppStarted() { Debug.Log("AppStarted"); OnAppStarted?.Invoke(this); if (AutoJoin) { UserJoin(); } }
private void Sync_OnComplete() { if (_appState != AppState.Stopped) { var execution = new Messaging.Protocols.Execution(this); execution.OnReceive += OnReceive; Protocol = execution; execution.Start(); foreach (var action in _executionProtocolActionQueue) { action(); } _appState = AppState.Running; OnAppStarted?.Invoke(); } }
protected override void OnResume() { // Handle when your app resumes base.OnResume(); if (Xamarin.Forms.Device.RuntimePlatform == Xamarin.Forms.Device.iOS) { } else { try { MGDataAccessLibrary.DataAccess.WebAPI.NotifyAppResumed(this); OnAppStarted?.Invoke(this, EventArgs.Empty); } catch (Exception ex) { Crashes.TrackError(ex); } } }