[WordPress] 外掛分享: Push Notification FCM

首頁外掛目錄 › Push Notification FCM
WordPress 外掛 Push Notification FCM 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
100+
安裝啟用
★★★☆☆
3/5 分(1 則評價)
868 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.0.6 上架:2022-07-28

內容簡介

介紹一款簡單易用的框架外掛程式,透過 Firebase Cloud Messaging (FCM),主要針對 Android 和 iOS 開發人員,讓您發送推播通知至全球所有 Android 和 iOS 裝置。使用我們的外掛程式,整合和使用輕鬆又方便。

只需安裝外掛程式,輸入 Firebase Server (API) 金鑰於設定中,產生網站金鑰,並選擇要發送通知的文章類型,即可使用。

我們的外掛程式也包括 REST API 端點,用於註冊和解除註冊裝置與您的網站,當行動應用程式啟動或刪除時。一旦設備註冊,它就會在每次發佈所選文章類型中的新文章或頁面時,收到通知。不要錯過重要的更新,立即嘗試我們的 FCM 外掛程式!

REST API 端點

為了向設備發送推播通知,需要記錄網站資料庫中的設備唯一識別 (ID) 和權杖。為此,外掛程式提供兩個 REST API 端點:一個用於訂閱行動應用程式安裝或啟動時的設備,另一個用於當應用程式被刪除時取消設備訂閱。這些端點允許網站追踪哪些設備註冊以接收通知,哪些沒有註冊。

訂閱設備:

https://example.domain/wp-json/fcm/pn/subscribe

參數:

rest_api_key (必填) – 外掛程式提供的唯一生成網站金鑰
device_uuid (必填)
device_token (必填)
subscription (必填) – 設備註冊的某個類別名稱,如果 WordPress 中不存在類別將會自動建立。
device_name (選填)
os_version (選填)

返回 JSON:

{
"error": false,
"message": "裝置權杖已註冊",
"subscription_id": 123
}

取消訂閱設備:

https://example.domain/wp-json/fcm/pn/unsubscribe

參數:

rest_api_key (必填) – 外掛程式提供的唯一生成網站金鑰
device_uuid (必填)

返回 JSON:

{
"error": false,
"message": "權杖已成功移除"
}

本外掛程式是免費和開源的軟體,這意味著它可以在任何 WordPress 安裝上使用,並且可以根據需求修改。
– 在使用前,請確定您已設置 Firebase 專案,並且您擁有 Firebase Server (API) 金鑰。

外掛程式需要一個唯一生成的網站金鑰,安裝後可透過設定頁面獲取。

外掛程式允許您選擇要發送通知的文章類型,因此您可以選擇只為某些類型的內容發送通知。

外掛程式使用 REST API 端點註冊和取消註冊設備,因此您的行動應用程式能夠與這些端點進行通訊非常重要。

外掛程式與 Android 和 iOS 裝置兼容。

外掛程式提供了一種方式,以向註冊了特定文章類別的所有設備發送推播通知。

在向設備發送推播通知之前,必須先確定裝置能夠與 Firebase Cloud Messaging (FCM) 通訊。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.6) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Push Notification FCM」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This FCM Plugin for WordPress is designed to simplify the integration of push notifications to all Android and iOS devices. With ease of use in mind, here’s what you can achieve:

Easy Integration:

Installation: Simply install the plugin.
Configuration: Enter your Firebase Server (API) key, generate a site key, and select the post types for notifications.
Compatibility: Works with both Android and iOS devices and the latest version of WordPress.

REST API Endpoints for Device Management:

Subscribe Device: Register devices when the mobile application is launched.
Unsubscribe Device: Deregister devices when the application is deleted.
Example: Use the provided endpoints with parameters like rest_api_key, device_uuid, device_token, etc., to manage subscriptions.

Customizable Notifications:

Categories: Register devices under specific categories. If a category doesn’t exist, it’ll be created automatically.
Content Types: Select specific post types for triggering notifications.

Open Source & Free: Modify and use without any cost.

Make sure to have a Firebase project and your Firebase Server (API) key before using the plugin. Don’t miss out on important updates, try our FCM push notification plugin today!
REST API Endpoints
Subscribe Device
https://example.domain/wp-json/fcm/pn/subscribe

Parameters:
– rest_api_key (required): Unique site key from plugin settings.
– device_uuid (required): Device’s unique ID.
– device_token (required): Device’s token.
– subscription (required): Category name for device registration.
– device_name (optional): Name of the device.
– os_version (optional): Operating system version.
Returns JSON:
{
"error": false,
"message": "Device token registered",
"subscription_id": 123
}

Unsubscribe device:
https://example.domain/wp-json/fcm/pn/unsubscribe

Parameters:

rest_api_key (required): Unique site key from plugin settings.
device_uuid (required): Device’s unique ID.

Returns JSON:
{
"error": false,
"message": "The device token was successfully removed"
}

This plugin is available as open-source and free of charge, allowing seamless integration with any WordPress setup and offering the flexibility for customization to meet specific needs.1. Preparation for Use:
– Prior to activating the plugin, it’s essential to establish a Firebase project and obtain the corresponding Firebase Server (API) key. This setup links your WordPress site to Firebase, enabling the key functionalities of the plugin.

Unique Site Key Requirement:

Upon installing the plugin, you’ll need to access the plugin settings page to generate a unique site key. This key is crucial for the identification and security of your particular WordPress installation.

Content-Type Selection for Notifications:

The plugin grants you the flexibility to choose specific types of posts for sending notifications. This allows for a tailored communication strategy, ensuring that users only receive alerts relevant to their interests.

Device Management via REST API Endpoints:

The plugin utilizes REST API endpoints to manage device registration and deregistration. Your mobile application must be configured to interact with these endpoints, enabling accurate control over the device subscriptions.

Cross-Platform Compatibility:

Designed to work seamlessly with both Android and iOS devices, this plugin ensures that you can reach your audience regardless of their preferred platform.

Category-Specific Notification Delivery:

The plugin facilitates sending push notifications to all registered devices for a particular post category. This targeted approach enhances engagement by delivering content-specific alerts.

Registration Verification Before Notification:

Prior to sending any notifications, the plugin verifies the device’s registration status. This step maintains notification accuracy and avoids sending to inactive or irrelevant devices.

Compatibility with Latest WordPress Version:

While the plugin aligns with the most recent WordPress version, it’s advisable to check for compatibility to ensure a smooth integration within your specific WordPress environment.

Customizable Open-Source Software:

Embracing an open-source model, the plugin’s code can be adapted to meet individual requirements. This encourages not only personalized use but also potential community contributions and collaboration.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon