Initial V2 commit 4

This commit is contained in:
Hamza-Ayed
2026-04-22 23:16:23 +03:00
parent 3269a836a2
commit 3f4afd0f5c
47 changed files with 456 additions and 72 deletions

View File

@@ -5,10 +5,15 @@ namespace App\Services;
use Illuminate\Support\Facades\Log;
/**
* FCM Notification Service
* خدمة إشعارات Firebase (FCM Service)
*
* Sends push notifications via Firebase Cloud Messaging (HTTP v1 API).
* Replaces the scattered sendFCM_Internal() calls from V1.
* الغرض من الملف:
* إرسال التنبيهات (Push Notifications) للهواتف الذكية عبر خدمة Google Firebase.
*
* كيفية العمل:
* 1. يتصل بخوادم Google باستخدام مفاتيح الوصول (API Keys).
* 2. يرسل التنبيه للراكب أو السائق بناءً على الرمز (Token) الخاص بجهازه.
* 3. يدير إرسال البيانات الإضافية (مثل معرف الرحلة) داخل التنبيه لتسهيل التفاعل معه داخل التطبيق.
*/
class FcmService
{