RepositoryJavaPEPeru
carlosCharz

carlosCharz/fcmxmppserver

XMPP Connection Server for FCM

101stars
34forks
0issues
3views

📡 Server XMPP kết nối FCM bằng Java

Một dự án Java mẫu cho phép bạn xây dựng một server kết nối trực tiếp tới Firebase Cloud Messaging (FCM) thông qua giao thức XMPP.

Đây là một dự án mở nguồn đơn giản, phát triển bởi carlosCharz như một nền tảng cho các dự án lớn hơn. Server này cho phép bạn nhận tin nhắn từ thiết bị (upstream) và gửi lại thiết bị (downstream) thông qua máy chủ FCM CCS sử dụng giao thức XMPP.

✨ Điểm nổi bật

  • Kết nối FCM qua XMPP: Sử dụng thư viện Smack để thiết lập kết nối XMPP tới máy chủ FCM CCS.
  • Hỗ trợ tin nhắn hai chiều: Nhận tin nhắn từ thiết bị (upstream) và gửi phản hồi (downstream) thông qua kênh kết nối duy nhất.
  • Xử lý payload linh hoạt: Hỗ trợ 3 loại hành động: register, message, echo thông qua các lớp xử lý (PayloadProcessor).
  • Cấu hình qua dòng lệnh: Lớp EntryPoint.java cho phép khởi chạy server với 3 tham số: sender ID, server key và registration ID.
  • Tích hợp thư viện mạnh mẽ: Sử dụng Smack và Json-simple.
  • Hỗ trợ GUI: Hiển thị thông tin tin nhắn đến/về thông qua giao diện đồ họa của thư viện Smack.
  • Tái sử dụng thành phần: Có thể tích hợp lớp CcsClient.java vào bất kỳ dự án Java nào khác.

💡 Vì sao đáng chú ý

Không giống như các giải pháp gửi thông bá p push thông thường sử dụng HTTP, dự án này dùng giao thức XMPP giúp kết nối duy trì liên tục và hỗ trợ truyền tin nhắn hai chiều giữa thiết bị và server. Điều này giúp cải thiện hiệu năng và tiết kiệm pin cho thiết bị, đặc biệt hữu ích trong các ứng dụng nhắn tin thời gian thực.

Ngoài ra, dự án còn cung cấp phiên bản nâng cấp với thư viện Smack 4.x và giải pháp xử lý kết nối (connection draining) tại fcmxmppserverv2.


#FCM #XMPP #Java #Firebase #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryJava
ByteJuno/fcmfix-coloros

FCMFix ColorOS:修复国行 ColorOS 16 / 17 拦截 Google FCM 推送的 LSPosed 模块(Root + LSPosed)

142
Nov 6, 2026
RepositoryRuby
rpush/rpush

The push notification service for Ruby.

2.2k
Oct 13, 2026
RepositoryPython
olucurious/PyFCM

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)

812
Aug 18, 2026
RepositoryPython
xtrinch/fcm-django

FCM Django: Send push notifications via django to websites, iOS & android mobile devices through FCM (Firebase Cloud Messaging)

797
Nov 2, 2026
RepositoryKotlin
SimonMarquis/FCM-toolbox

📲 Firebase Cloud Messaging toolbox

526
Nov 17, 2026
RepositoryJavaScript
MatthieuLemoine/electron-push-receiver

A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).

197
Dec 7, 2022
RepositoryKotlin
PatilShreyas/FCM-OnDeviceNotificationScheduler

Demo implementation to Schedule FCM Notifications on Android Device using AlarmManager + WorkManager.

123
Feb 26, 2020
RepositoryRuby
miyataka/fcmpush

Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.

84
Oct 31, 2026
RepositoryJavaScript
CyC2018/CS-Notes

:books: 技术面试必备基础知识、Leetcode、计算机操作系统、计算机网络、系统设计

186.6k
Nov 14, 2026