async void NotificationActionTriggered(object sender, PushNotificationAction e)
        {
            DisplayAlert();

            if (App.notificationMessage.AutoSync == "Enabled")
            {
                await Task.Delay(TimeSpan.FromSeconds(5));

                bool result = viewModel.GetActiveAlarms();

                if (result)
                {
                    await Device.InvokeOnMainThreadAsync(() =>
                    {
                        this.DisplayAlert("Success", "Alarms have been updated", "OK");
                    });

                    App.notificationMessage.Message = "";
                }
                else
                {
                    await Device.InvokeOnMainThreadAsync(() =>
                    {
                        this.DisplayAlert("Failure", "An error occured. Please check IP is correct within Settings.", "OK");
                    });
                }
            }
        }
        async void NotificationActionTriggered(object sender, PushNotificationAction e)
        {
            DisplayAlert();

            if (App.notificationMessage.AutoSync == "Enabled")
            {
                await Task.Delay(TimeSpan.FromSeconds(5));

                viewModel.GetHistoricAlarms();
            }
        }