前言介紹
- 這款 WordPress 外掛「All push notification for WP」是 2016-08-23 上架。
- 目前有 60 個安裝啟用數。
- 上一次更新是 2017-02-20,距離現在已有 2994 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
- 有 3 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
gtlwpdev |
外掛標籤
ios | push | mobile | android | notification |
內容簡介
All push notifications for WP 是一個非常有用的外掛程式,可透過 WordPress 整合將推播通知發送到 iOS 和 Android 裝置。使用者可以透過 wp-admin 的自訂編輯器向 iOS 和 Android 發送推播通知,甚至當管理員發佈新文章、新頁面或新增評論時也都可以。
主要功能
All push notifications for WP 支援以下環境:
Apple 推播通知服務 (APNs)
Google 雲端訊息 (GCM)
Firebase 雲端訊息 (FCM)
透過此外掛程式,您可以:
有選擇性地向 WordPress 使用者發送推播通知。
當有新文章發佈或有新評論加入至文章時,向使用者發送推播通知 (管理員使用者)。
重要提醒
要發送推播通知至 Android 裝置,您需要從 Google GCM 平台取得 API 金鑰。
要發送推播通知至 iOS 裝置,您需要從 Apple APNs 取得 pem 認證檔案。
要註冊任何裝置/使用者以接收推播通知,需要在行動應用程式中整合「註冊」API。註冊 API 是外掛程式的一部分,換言之,它不是第三方 API。這也意味著所有裝置記號資料都只有保存在您的 WordPress 應用程式資料庫中。它的基本用途是收集相應的 iOS 和 Android 裝置的裝置記號,以便從 WordPress 發送推播通知。有關詳細資訊,請參閱 FAQ 部分。
從裝置應用程式來看,需要傳送額外的標題資訊,以便 Google 雲端訊息 (GCM) 和 Apple 推播通知服務 (APNs) 之間辨認裝置。
以下標題資訊是必要的:
device_token:這將是作業系統所提供的設備唯一識別碼。
os_type:裝置作業系統的類型 - 使用 android 表示 Android,使用 ios 表示 iOS 裝置。
任意節點
問:如何實現設備記號和作業系統類型?它是在網頁標頭原始碼中還是在應用程式原始碼中?需要範例 API 網址和註冊設備記號的參數。
答:請按以下步驟成功在您的行動裝置中實現推播通知
- 透過 WordPress 的外掛程式選單啟用 All push notifications for WP。啟用外掛程式時,外掛程式會在您的 WordPress 資料庫中新增兩個新表格,名稱為 「all_pushnotification_logs」和「all_pushnotification_token」。請確認這些表格是否存在於您目前啟用的資料庫中。
- 根據您的需求透過外掛程式的 wp-admin 部分設定。
- 如果您想要發送 Android 推播通知,請新增 FCM/GCM 金鑰。如果您希望推播通知 iOS,請上傳 pem 認證檔案。請參閱以下網址 http://stackoverflow.com/questions/21250510/generate-pem-file-used-to-setup-apple-push-notification 以了解 pem 檔案的詳細資訊。
現在,
- 有兩個主要方面。第一,執行在桌上型電腦或筆記型電腦上的 WordPress 網站,擁有 wp-admin。第二,為 iOS/Android 手機裝置創建的應用程式。
- 要傳送推播通知至裝置,我們必須需要知道裝置的記號 (或裝置 ID),該記號必須由應用程式透過此 API 提供。以及該行動裝置使用的作業系統類型。
- 要註冊設備,您需要遵循以下步驟。
- 首先,必須在此表格中插入每個裝置的行動裝置類型和行動裝置記號。為此,您需要從應用程式服務中 (例如登入、註冊服務) 傳遞裝置類型和裝置記號至 URL「 http://yourwordpresssite/apnwp/register 」。
原文外掛簡介
All push notifications for WP is useful plugin to send push notification to iOS and Android devices using WordPress integration.User can send push notifications to iOS and Android with custom Editor from wp-admin and even When admin publish a new post/page and even new comment is added to any post.
Key Features
All push notifications for WP supports following environments:
Apple Push Notification service (APNs)
Google Cloud Messaging (GCM)
Firebase Cloud Messaging (FCM)
By using this plugin you can:
Send push notification to WordPress users selectively.
Send push notification to users when new post is published or when new comment is added to the post (administrator user)
Important note
To send push notification to android devices, you will need API Key from Google GCM platform.
To send push notification to ios devices, you will need pem certification file from Apple APNs.
For registering any device / user for push noficiation, it is required to integrate ‘register’ api in mobile application. Register API is part of the plugin only i.e. it is not third party API. It also means that all device token data is maintained in your wordpress application database only. Its basic use is to gather device token of respective iOS and Android devices so that push notifications can be sent from wordpress. More details about the same has been given in FAQ section.
From the device app, it is required to send additional headers information so that device is recognized by Google Cloud Messaging (GCM) and Apple Push Notification service (APNs)
Following headers are required:
device_token: It will be the unique identifier provided by operating system to device.
os_type: The type of device os – Use android for Android and ios for iOS devices.
Arbitrary section
Que) How to implement the device token and os type. Is it in the web header source code OR in the app source code? . Need example API URL?S and parameters to register the device_token.
Ans -Please follow the below steps to achieve the pushnotificaiton in your mobile devices successfully
- Activate Push Notifications for WP through the Plugins menu in WordPress.when you active the plugin the plugin will add 2 new tables in your wordpress database like 'all_pushnotification_logs' , 'all_pushnotification_token' . Please make sure that those tables are exist in your current activated Database.
- Set the settings as per your requirement through wp-admin part of plugin.
- please add FCM/GCM key if you want to pushnotification for android and Please upload the .pem certificate if you want pushnotifcaiton for ios.plese refer http://stackoverflow.com/questions/21250510/generate-pem-file-used-to-setup-apple-push-notification for .pem file.
Now ,
- There are two main aspects first - wordpress website which run on desktop / laptop which have a wp-admin. Second - the application which you created for mobile devices with ios/android.
- To send a push notification to a device, we must need to know its token (or Device ID) which has to be provided by the app through this API. And the type of operating sytem which mobile is useing .
- For Registering a device you need to follow steps.
- First of all you have to insert the mobile device type and mobile device token of each devices in this table. For that you need to pass the device type and devices token in parameters from your application services like login , register service to the URL " http://yourwordpresssite/apnwp/register " . It means whenever user register or login from your application you need to pass that particular mobile's token and mobile operation system type android / ios.
- 'wp-json' or 'WordPress REST API' that shipped as part of WordPress core from version 4.4 Later.
URL structure:
http://yourwordpresssite/wp-json/apnwp/register
Method: GET
Parameters:
device_token (string): token given by APNs or FCM identifying the device, often called device ID.
os_type (string): operating system. It must be ios or android (case sensitive).
user_email_id (string, optional): the user email address which is login from your mobile app.
Examples:
http://yourwordpresssite/wp-json/apnwp/[email protected]&device_token=1234567890
Refere Document:
- more details how to pass the parameters in Android - https://www.codementor.io/flame3/tutorials/send-push-notifications-to-android-with-firebase-du10860kb
- more details how to pass the parameters in ios - https://www.raywenderlich.com/123862/push-notifications-tutorial
- After passing the parameters when user successfully register or login please check the database table `all_pushnotification_token` and check the token and OS type is inserted successfully or not.
Translations
* English – default, always included
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「All push notification for WP」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.5.1 | 1.5.2 | 1.5.3 | trunk |
延伸相關外掛(你可能也想知道)
AMP 》「Page Experience」(PX)是一組排名訊號,包括「核心網頁素質」(Core Web Vitals,CWV),用來測量使用者與網頁互動的使用體驗。AMP 是一個強大的工具,能...。
Responsive Menu – Create Mobile-Friendly Menu 》這是一個高度自訂化的 WordPress 響應式選單外掛程式,擁有超過150個可自訂選項,讓您擁有22,500種組合選擇!您不需要編寫代碼或知識,只需使用簡單易用的介...。
WP Mobile Menu – The Mobile-Friendly Responsive Menu 》需要一個專門的手機網站體驗嗎?需要一個能讓您的手機訪客參與的手機菜單外掛嗎?, , WP Mobile Menu是最優秀的WordPress響應式手機菜單。使用任何設備(智能...。
WPtouch – Make your WordPress Website Mobile-Friendly 》WPtouch是一個 WordPress 插件,為您的 WordPress 網站自動添加一個簡單而優雅的行動版主題,以迎接行動訪客。建議您使用 Google 推薦的 WPtouch,它可以立即...。
WP Responsive Menu 》WP Responsive Menu是一個簡單的外掛,可以讓您在WordPress網站上快速添加高度可定制的響應式菜單,在設置頁面上直接進行自定義,無需任何編碼技能。, 查看實...。
Instant Articles for WP 》該外掛為Facebook即時文章(Instant Articles)新增支援,Facebook即時文章是一種讓發布者在Facebook上展示快速、互動式故事的新手段,文章會預先載入至Faceb...。
Favicon Rotator 》Favicon Rotator 外掛能夠讓您輕鬆客製化您網站上的圖示。只需透過管理頁面新增 favicon,並在每次訪客訪問您的網站時展示。, 亮點, , 新功能:為觸控裝置(A...。
Easy Video Player 》Easy Video Player 是一個易於使用的 WordPress 影片外掛程式,可展示您的影片。您可以嵌入自行架設的影片或使用直接連結外部架設的影片。, Easy Video Playe...。
ShiftNav – Responsive Mobile Menu 》ShiftNav 是 WordPress 的一個很棒的行動裝置選單外掛程式。它的外觀和操作方式與像 Facebook、Gmail 等受歡迎的應用程式的本機 App 側邊拉出式選單非常相似...。
Quick Call Button 》✅ 讓網站輕鬆增加快速撥打電話按鈕。, ✅ Quick Call Button 是一款外掛程式,可以添加快速撥打電話按鈕,幫助您的客戶避免輸入電話號碼,並能立即透過您的...。
Mobile Call Now & Map Buttons 》在設備上新增「立即致電」和「導航」按鈕, , 容易自定義列、文字、按鈕顏色和字體, 設置按鈕出現的裝置尺寸範圍, , 請注意, , 🔥 這是一個新的外掛,最近恢復...。
WP Responsive Table 》這個外掛使得在小螢幕上的 HTML 表格可以橫向滾動。它在其自己的容器中橫向滾動,使得顯示在螢幕上的表格可以更加符合螢幕大小。, 特色, , 開箱即用,無需額...。
mobble 》mobble 提供了與您網站相關的手機條件函數,例如 is_iphone()、is_mobile() 和 is_tablet()。, CSS 媒體查詢非常適合創建響應式網頁設計,但它們並不總是提供...。
Definitely allow mobile zooming 》這個小型的外掛會悄悄地新增 viewport meta tag,讓你的使用者能在行動裝置上縮放你的網站而不受限制。如果你在使用自己喜愛的智慧型手機卻發現無法縮放主題...。
WP SiteManager 》WordPress 作為 CMS 的功能價值隨著版本的增加而增加,目前的 3.4 版本充分利用自訂文章類型和自訂分類法的功能,使得創建多樣化的內容成為可能。然而,隨著...。