From 452f4a7e5adac3c51a89d1e9335b181b2a07e6d8 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Thu, 21 Aug 2025 11:23:17 +0530 Subject: [PATCH] Removed the unnesseary notification --- Marco.Pms.Services/Controllers/AuthController.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Marco.Pms.Services/Controllers/AuthController.cs b/Marco.Pms.Services/Controllers/AuthController.cs index 6162e22..d2944a0 100644 --- a/Marco.Pms.Services/Controllers/AuthController.cs +++ b/Marco.Pms.Services/Controllers/AuthController.cs @@ -983,16 +983,6 @@ namespace MarcoBMS.Services.Controllers _logger.LogError(ex, "Exception occured while saving FCM Token for employee {EmployeeId}", loggedInEmployee.Id); return StatusCode(500, ApiResponse.ErrorResponse("Internal Error", ex.Message, 500)); } - - _ = Task.Run(async () => - { - // --- Push Notification Section --- - // This section attempts to send a test push notification to the user's device. - // It's designed to fail gracefully and handle invalid Firebase Cloud Messaging (FCM) tokens. - await _firebase.SendLoginOnAnotherDeviceMessageAsync(loggedInEmployee.Id, model.FcmToken, tenantId); - - }); - return Ok(ApiResponse.SuccessResponse(new { }, "FCM Token registered Successfuly", 200)); } private static string ComputeSha256Hash(string rawData)