
內容簡介
p>此外掛使用 Firebase Cloud Messaging (FCM) 從網站、Android/iOS 行動應用程式中傳送推播通知。此外掛具有 REST API 功能,可與原生/混合 Android/iOS 行動應用程式整合以傳送推播通知。它會在 WordPress 文章、自訂文章類型、新的 BuddyPress 活動或評論發表時傳送通知。它具有生成 PWA - Progressive Web App 的功能。此外掛能夠使用背景作業排程器向超過 200,000 位訂閱者傳送無限量的推播通知。
此外掛的功能包括:
對以下項目進行發佈時傳送/排程推播通知:
發佈新文章/自訂文章類型 (包括bbpress、Woocommerce)
發佈新的 BuddyPress 活動
發佈新的 BuddyPress 群組活動
發佈新的 BuddyPress 評論
新的 BuddyPress 訊息或私人訊息
新的 BuddyPress 成員加入
BuddyPress 的朋友請求
BuddyPress 中的交友成功
BuddyPress 中使用者的頭像更改
BuddyPress 中封面圖片的更改
Woocommerce 自訂文章類型的推播通知
前端推播通知選單可供 BuddyPress 前端使用者根據自己的喜好訂閱/取消訂閱各種推播通知。此選單位於使用者的個人資訊 - 設定區域。對於其他使用者,可使用短碼來顯示訂閱選單,以讓前端使用者根據自己的喜好訂閱/取消訂閱各種推播通知。
REST API
REST API 用於將移動原生/混合應用程式連接到 WordPress 網站,從 WordPress 網站發送推播通知到移動應用程式(Android/Ios) 和 WordPress 網站。
使用此 REST API,WordPress 網站從手機應用程式(Android/Ios)取得 Firebase Push Notification 訂閱 Token。
這可讓您向 WordPress 網站使用者以及 Native 行動應用程式 Android/Ios 使用者發送推播通知。
REST API URL 為 https://wp-json/PNFPBpush/v1/subscriptiontoken
前端推播通知選單
前端推播通知訂閱選單供前端 BuddyPress 使用者在使用者個人資料下取消訂閱各種推播通知。
請參閱「如何使用此外掛」中的影片教程,以在外掛管理區域中設定 Firebase 選項。
PWA
此外掛具有生成 Progressive Web App (PWA) 的功能。
Progressive Web App 受 Chrome(桌面、移動端)瀏覽器、Edge 瀏覽器、Android 的 Firefox、Opera 的 Android 支援。Firefox 的桌面版不支持 PWA。
前往外掛設定頁面以啟用/停用 PWA 應用程式,並使用應用程式名稱、應用程式圖示、PWA 的背景顏色、應用程式的背景色以及要包含在離線快取中,以供網站離線模式使用的頁面清單,自訂 PWA 應用程式。
短碼
對於前端使用者,可以使用短碼 [subscribe_PNFPB_push_notification]訂閱/取消訂閱各種推播通知:
訂閱所有通知
訂閱所有新文章/新 BuddyPress 活動通知
訂閱文章、BuddyPress 活動的所有新評論通知
只訂閱「我的 BuddyPress 活動」或「我的文章」基於文章作者 ID/BuddyPress 活動作者 ID的新評論通知
BuddyPress 新成員加入通知
BuddyPress 的朋友請求
BuddyPress 中交友成功通知
BuddyPress 使用者頭像更改通知
BuddyPress 中封面圖片更改通知
取消訂閱所有通知
前端使用者/客戶可以使用上述短碼選擇訂閱/取消訂閱各種推播通知。
外掛標籤
開發者團隊
② 後台搜尋「Push Notification for Post and BuddyPress」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
It sends push notifications to desktop, android/ios mobile apps using Firebase Cloud Messaging (FCM) Firebase API http v1 or Onesignal or Progressier as notification provider. It has REST API facility to integrate with native/hybrid Android/iOS mobile apps for push notifications. It sends notification whenever new WordPress post, custom post types, new BuddyPress activities, comments published. It has facility to generate PWA – Progressive Web App.
Plugin features:
** Plugin allows to choose different push notification providers **
1. Firebase – FCM (Free push notifications for desktop, PWA and mobile apps)
2. Self-hosted push notification using web-push
3. Onesignal (Free push notification for desktop, PWA and mobile apps)
4. Progressier (Push notifications for PWA)
5. webtoapp.design (Push notifications for Mobile apps)
(Plugin allows to send push notifications to both Firebase/Onesignal and webtoapp.design users simultaneously)
** Plugin sends Push notifications for following **
New post/custom post type published (including bbpress).
New BuddyPress activities published.
New BuddyPress group activity published (only to members of group).
Notifications for BuddyPress mentions in activities.(only to recipient).
BuddyPress group invite sent (only to recipient).
BuddyPress group details updated.
New Buddypress comments published.
New BuddyPress message or private messages (only to recipient).
(It is also compatible with Bettermessages plugin).
New BuddyPress member joined.
For Friend request in BuddyPress (only to recipient).
Friendship accepted in BuddyPress (only to requestor).
User avatar change in BuddyPress.
Cover image change in BuddyPress.
Mark as favourites or Likes on BuddyPress activities.
Supports Push notifications for BuddyBoss and Better Messages plugins
Woocommerce custom post type push notifications.
Ability to process more than 200,000 subscribers unlimited push notifications using background action scheduler.
** Admin only push notifications (only to administrators) **
1. When contact form(contactform7 plugin) submitted.
2. When new user registered in site.
Reports
It supports Firebase analytics reports in Firebase console for notification_open, notification_read, page_view events.
Notifications only for loggedin users
Enable/Disable option in admin settings to send push notifications using Firebase httpv1 or Onesignal only for loggedin users.
Custom popup and Bell prompt to subscribe push notifications with subscription options
Enable/Disable custom notification subscription prompt to subscribe/unsubscribe push notifications in front end in admin settings.
Enable/Disable Bell prompt icon to subscribe/unsubscribe notifications. Front end users will be able to subscribe to particular category like post, activity, comments, friendship request/accept, other options while subscribing for first time or if user wants to update subscribe options from bell prompt at any time it is needed.
Shortcodes
[subscribe_PNFPB_push_notification] is available to Subscribe/Unsubscribe push notifications for frontend users.
[PNFPB_PWA_PROMPT] to install PWA.
[member name] and [group name] are avilable to display user name in push notifications, For BuddyPress group activities [group name] shortcode to display group name in push notifications.
Subscribe/Unsubscribe various push notifications in front end
Front end push notification menu is available for BuddyPress Front end users to subscribe/unsubscribe various push notifications according to their choices. This menu is available in user profile – settings area. For other users, shortcode is available to display subscription menu for Front end users to subscribe/unsubscribe various push notifications according to their choices.
Scheduling Push notification
It allows Scheduled Push notifications to send push notifications hourly(every hour), twice daily(2 times per day), daily, weekly as per WordPress CRON. It also provides option to schedule push notification in background using action scheduler, this will be useful to send notification more than 100000 subscribers simultaneously in background mode.
Push notification scheduling is available for On demand/One time, WordPress Post, BuddyPress activities, BuddyPress group activities and for BuddyPress comments.
REST API
REST API to connect mobile native/hybrid apps to send push notification from WordPress site to both mobile apps and WordPress sites.
Using this REST API WordPress site gets Firebase Push Notification subscription token from Mobile app(Android/Ios).
This allows to send push notifications to WordPress site users as well as to Native mobile app Android/ios users.
REST API url is https://wp-json/PNFPBpush/v1/subscriptiontoken
HOW TO USE PLUGIN API TO INTEGRATE MOBILE APP PUSH NOTIFICATION
Android app code to integrate with this plugin
IOS app code to integrate with this plugin
Refer video tutorial under “How to use this plugin” section to configure Firebase options in plugin admin area.
PWA
This plugin has facility to generate Progressive Web App (PWA). It also supports Progressier PWA.
Go to plugin settings page to enable/disable PWA app and to customize PWA app with app name, app icon, app theme color, background color for PWA and list of pages to be included in offline cache for web app offline mode.
Extra settings for NGINX server
If server is NGINX and not able to create dynamic service worker file https://pnfpb_icpush_pwa_sw.js & PWA manifest json file https://pnfpbmanifest.json then go to plugin settings->nginx tab, enable static file creation option, it will create required static service worker file, PWA manifest json files in root folder. This option is applicable only if hosting/server is based on NGINX and not creating dynamic service worker file, manifest json files. By default, this plugin creates dynamic service worker file and PWA manifest json file.
This plugin uses Firebase Cloud Messaging to send push notification using Firebase registration credentials which is free of cost.
Plugin Demo site
Test PNFPB plugin here
Video tutorial showing how to configure Firebase for this plugin
Frequently Asked Questions (FAQ)
Do you have any questions?
Submit or contact us with your question here (or) Please contact us here with your query. (or) Submit your question in plugin forum
How can I report security bugs?
You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.
