async void SfSwitch_Anonymity_StateChanged(System.Object ssender, Syncfusion.XForms.Buttons.SwitchStateChangedEventArgs e)
        {
            var user     = App.IoCContainer.GetInstance <IUserManagementService>();
            var response = await user.ToggleAnonymousUser((bool)e.NewValue);

            CrossToastPopUp.Current.ShowToastMessage("Anonomity set to: " + response);
            App.Current.Properties["isAnonymous"] = response;
        }
        /// <summary>
        /// Enabels and disables location tracking
        /// </summary>
        async void SfSwitch_StateChanged(System.Object sender, Syncfusion.XForms.Buttons.SwitchStateChangedEventArgs e)
        {
            IBackgroundLocationService back = App.IoCContainer.GetInstance <IBackgroundLocationService>();

            if (e.NewValue == true)
            {
                //BackgroundLocaitonService.Tracking = true;
                back.Start_Tracking();
                CrossSecureStorage.Current.SetValue("Location", "true");
                CrossToastPopUp.Current.ShowToastMessage("Location Tracking Enabled");
            }
            else
            {
                //BackgroundLocaitonService.Tracking = false;
                back.Stop_Tracking();

                //await DisplayAlert("Attention", "Disabled", "OK");
                CrossToastPopUp.Current.ShowToastMessage("Location Tracking Disabled");
                CrossSecureStorage.Current.SetValue("Location", "false");
            }
        }