[WordPress] 外掛分享: Push Notification FCM

WordPress 外掛 Push Notification FCM 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Push Notification FCM」是 2022-07-28 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2023-10-28,距離現在已有 553 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

creativform | ivijanstefan |

外掛標籤

FCM | ios | android | push notifications | Firebase Cloud Messaging |

內容簡介

介紹一款簡單易用的框架外掛程式,透過 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) 通訊。

原文外掛簡介

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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Push Notification FCM」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.6 | trunk |

延伸相關外掛(你可能也想知道)

  • WPtouch – Make your WordPress Website Mobile-Friendly 》WPtouch是一個 WordPress 插件,為您的 WordPress 網站自動添加一個簡單而優雅的行動版主題,以迎接行動訪客。建議您使用 Google 推薦的 WPtouch,它可以立即...。
  • Multi Device Switcher 》Multi Device Switcher外掛允許您為設備(智能手機、平板電腦、手機、遊戲和自定義)設置單獨的佈景主題。, 此外掛可以偵測到使用者代理(UserAgent)是否正在...。
  • WPMobile.App 》WPMobile.App 可以建立您的 WordPress 網站的 Android 和 iPhone-iPad 原生行動應用程式,並允許您在 Google Play 和 App Store 上發布它。, 我們的 Android ...。
  • Mobile Assistant Connector 》這個外掛可以協助您將 WooCommerce 商店連接至您的 Android 裝置,讓您可以隨時追蹤銷售資訊。當您安裝來自 Google Play 的免費行動助手模組並連接至商店後,...。
  • WordPress Mobile Pack – Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps 》WordPress Mobile Pack 是一款能協助你將網站內容轉換為漸進式行動網路應用程式的 WordPress 外掛。它附帶多種行動應用主題,可單獨購買或作為一個套件購買。...。
  • Browser Theme Color 》發掘一個強大的解決方案,透過我們簡單、輕量、有效的外掛,增強您的網站跨平台的使用者體驗,加入「theme-color」meta 標籤。我們的外掛與 Android、iOS 和 ...。
  • GoodBarber 》GoodBarber 外掛是由 dphiffer 所製作的 JSON API 分支。, GoodBarber 外掛能夠建立 WordPress 與 GoodBarber 帳號之間的溝通介面,, 透過這個介面可以擷取 W...。
  • WP Photo Sphere 》WP Photo Sphere 是一個外掛,允許您顯示 360×180 度全景照片。使用 WP Photo Sphere,您的訪客不需要安裝任何插件即可瀏覽您的全景照片。, WP Photo Sp...。
  • Push7 》Push7 | 為網站提供網頁推播通知服務, (https://push7.jp/), Push7 現在支援 Chrome (Android 和桌面版)。。
  • Mobile View for Responsive web design optimization (UX design) + Mobile Friendly Test 》在行動裝置已成為網路流量使用的主宰時代,讓您的網站符合行動裝置友善的標準是很有意義的。行動裝置友善度是決定您網路成功的關鍵因素之一,因此重要的是要...。
  • FCM Push Notification from WP 》此外掛可通知使用者發布、頁面及自訂文章型態。, 可與已排程的文章一同運作。, 使用 Google 的 Firebase Push Notification 服務,從您的網站發送通知給應用...。
  • Build App Online 》此外掛可以協助您建立和執行 WooCommerce 手機應用程式。, 在 5 分鐘內建立您的手機應用程式。, 觀看我們關於建立 WooCommerce 手機應用程式的 YouTube 影片,...。
  • WP Smart Mobile Theme Plugin 》WP Smart Mobile 自動將您的 WordPress 部落格設置為行動裝置適用,使用美麗的佈景主題,能依照不同設備(如 iPhone, Android, BlackBerry 或 Windows )來自動...。
  • Pushover Integration for WooCommerce 》Pushover for WooCommerce 將 WooCommerce 與 Pushover 通知應用程式整合,可用於 Android 和 iOS。, 安裝和設置完成後,您的設備可以自動收到有關新訂單、低...。
  • Push Notifications for WordPress (Lite) 》當您發布新文章時,可以直接從您的 WordPress 網站實時地向 iOS 和 Android 設備發送推送通知。此外,這個外掛還內置了一個集線器,讓 WordPress 直接發送推...。

文章
Filter
Apply Filters
Mastodon