內容簡介
總結:這個 WordPress 外掛讓你可以從 WordPress 管理員面板直接使用 Firebase Cloud Messaging (FCM) 將推播通知直接發送到 Android 手機應用程式,非常適合需要通知用戶有關新內容、更新或重要公告的應用程式。
提問與答案:
1. 這個外掛的主要功能是什麼?
- 可以透過 Firebase Cloud Messaging 將推播通知直接發送到 Android 手機應用程式,並支援指定主題用戶群組的推播。
2. 這個外掛提供了哪些重要功能?
- 支援根據主題訂閱的對象發送通知、豐富的通知內容支援(圖片、自定義連結等)、完整的分析追蹤、用戶參與度追蹤、通知歷史管理等。
3. 這個外掛適用於哪些網站或應用程式類型?
- 新聞和部落格網站、具有 Android 應用程式的電子商務平台、學生手機應用程式的教育平台、社區網站等。
4. 運作方式是怎樣的?
- 上傳 Firebase 服務帳戶的 JSON 檔案並設定主題、撰寫通知、選擇接收通知的用戶群組、即時發送通知並監控交付成功率和用戶參與度。
5. 使用此外掛需要什麼?
- 必須擁有啟用 FCM 的 Firebase 專案、從 Firebase 控制台取得服務帳戶的 JSON 檔案、設定可以接收 FCM 通知的 Android 應用程式(基於主題)、使用 WordPress 5.0+ 和 PHP 7.4+。
外掛標籤
開發者團隊
② 後台搜尋「Topic-Based Push Notifications for Firebase」→ 直接安裝(推薦)
原文外掛簡介
Topic-Based Push Notifications for Firebase enables you to send push notifications from your WordPress admin panel directly to Android mobile applications using Firebase Cloud Messaging (FCM). Perfect for apps that need to notify users about new content, updates, or important announcements.
Key Features
Topic-Based Targeting: Send notifications to specific user groups by topic subscription
Rich Notifications: Support for images, custom links, and detailed messaging
Complete Analytics: Track delivery rates, engagement, and notification performance
Engagement Tracking: Monitor when users open notifications with detailed metrics
History Management: View all sent notifications with filtering and search capabilities
Modern Interface: Clean, responsive admin interface that works on all devices
Secure Implementation: Built with WordPress security best practices
How It Works
Setup: Upload your Firebase service account JSON file and configure topics
Create: Compose notifications with title, message, optional image, and link
Target: Select which topics (user groups) should receive the notification
Send: Deliver notifications instantly to all subscribed Android devices
Track: Monitor delivery success rates and user engagement in real-time
Perfect For
News and blog websites with mobile apps
E-commerce stores with Android applications
Educational platforms with student mobile apps
Community websites with member applications
Any WordPress site with an Android companion app
What You Need
Firebase project with FCM enabled
Service account JSON file from Firebase Console
Android app configured to receive FCM notifications (topic based). This version doesn’t handle token based notifications.
WordPress 5.0+ and PHP 7.4+
External Services
This plugin connects to Google’s Firebase services to send push notifications to mobile applications. External service connections are required for the plugin’s core functionality.
Google OAuth API (oauth2.googleapis.com)
* Purpose: Authentication with Firebase Cloud Messaging service
* Data sent: Service account credentials (from your uploaded JSON file), authentication tokens
* When: Every time notifications are sent (to obtain access tokens)
* Terms of Service: https://developers.google.com/terms
* Privacy Policy: https://policies.google.com/privacy
Firebase Cloud Messaging API (fcm.googleapis.com)
* Purpose: Sending push notifications to Android mobile applications
* Data sent: Notification content (title, message, image URLs, links), target topics, FCM project ID
* When: When you send notifications through the plugin interface
* Terms of Service: https://firebase.google.com/terms
* Privacy Policy: https://policies.google.com/privacy
Privacy & Data
This plugin processes notification data locally on your WordPress installation. Notifications are sent directly to Google’s Firebase Cloud Messaging service.
No user data is collected or sent to services other than Google/Firebase for notification delivery. Your Firebase service account credentials are stored securely on your server.
Developers
The plugin includes hooks and filters for developers to extend functionality:
tbpn_before_send_notification – Filter notification data before sending
tbpn_after_send_notification – Action after notification is sent
tbpn_notification_response – Filter FCM response data
REST API endpoint for mobile apps to report engagement
Technical Details
System Requirements
WordPress 5.0 or higher
PHP 7.4 or higher
MySQL 5.6 or MariaDB 10.0
SSL certificate (recommended for production)
File Permissions
The plugin creates a secure upload directory for Firebase service account files. Ensure your WordPress uploads directory is writable.
Database Tables
The plugin creates two tables:
* wp_tbpn_notifications – Stores notification history and analytics
* wp_tbpn_engagements – Tracks user engagement with notifications
REST API Endpoints
POST /wp-json/mn/v1/engage – Report notification engagement (for mobile apps)
Hooks for Developers
Actions:
* tbpn_notification_sent – Triggered after notification is sent
* tbpn_notification_failed – Triggered when notification sending fails
* tbpn_engagement_recorded – Triggered when engagement is recorded
Filters:
* tbpn_notification_data – Filter notification data before sending
* tbpn_topics_list – Filter available topics
* tbpn_max_notifications_per_hour – Filter rate limiting
Security Features
Nonce verification for all forms
Capability checks for admin actions
SQL injection prevention with prepared statements
XSS prevention with proper output escaping
Secure file upload handling
Rate limiting for notification sending
Support
For support, feature requests, or bug reports, please use the WordPress.org support forums.
For documentation and updates, visit the plugin homepage.
Contributing
This plugin is open source. Contributions, bug reports, and feature requests are welcome on the plugin’s development repository.
