前言介紹
- 這款 WordPress 外掛「PWA for WordPress」是 2018-08-28 上架。
- 目前有 400 個安裝啟用數。
- 上一次更新是 2019-04-23,距離現在已有 2201 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 4 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
pwa | mobile | pwa4wp | progressive web app | progressive web apps |
內容簡介
關於這個外掛
這個外掛可以將您的 WordPress 網站轉換為 PWA,並在您的網站中創建兩個檔案,「Manifest」和「ServiceWorker」。
Manifest 檔案是一個包含網路應用程式配置設定的 JSON 檔案。
ServiceWorker 則是 JavaScript 檔案,可以控制 PWA 的功能。
要啟用 PWA,請從配置螢幕中設定這兩個檔案。
您可以微調快取,例如過期日期、時間以及 URL 排除。
透過排除 URL,例如新到貨資訊、AJAX 中的資料取得目的地之類,這個外掛可以保持 PWA 的資料新鮮。
您可以設定快取的過期時間,舊的快取將在指定的時間後被清除。
在 1.1.2 版本之後,
支援多站點。
您可以拖延 PWA 安裝彈出式視窗,並在您的網站上新增自己的安裝按鈕。
步驟1
設定 Manifest
準備圖示圖像檔,圖像檔必須是 PNG 格式。
製作離線頁面,此頁面將與 PWA 安裝一起快取,並在 PWA 離線時顯示。
從 Manifest 設定頁面設定 Manifest 檔案。
圖像檔將自動調整大小以符合圖示大小。
步驟2
設定 ServiceWorker
從 ServiceWorker 配置頁面設定 ServiceWorker 檔案。
完成!
原文外掛簡介
About this plugin
To make your WordPress website to PWA, this plugin make two files, “Manifest” and “ServiceWorker” in your website.
Manifest file is a json file that has configurations of web applications.
ServiceWorker is a JavaScript file that controls PWA’s functions.
To start PWA, configure two files from configuration screen.
You can fine-tune the cache, such as expiration date, time and URL exclusion.
By excluding the URLs, like a new arrival information, data acquisition destination in Ajax, this plugin can keep PWA data fresh.
You can set expire time of caches, then old cache will purged after specified time.
After version 1.1.2,
Multi sites are supported.
You can defer the PWA installation popup shown in browser default and add your own installation button on your sites.
STEP1
Configure Manifest
Prepare icon image file, image file must be png format.
Make offline page, this page will cached with PWA installation and shown when PWA is offline.
Setup manifest file from Manifest Configuration page.
Image file will be resized to fit icon sizes automatically.
STEP2
Configure ServiceWorker
Setup ServiceWorker file from ServiceWorker Configuration page.
COMPLETE!
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PWA for WordPress」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.2.0 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。