
內容簡介
Official Add To Homescreen 是一個 WordPress 的外掛,用來包裝 Add To Homescreen 的 JavaScript 外掛程式。這個 WordPress 外掛可協助你透過繁瑣的 JavaScript 小工具進行配置。
此為唯一由 JavaScript 小工具相同作者所開發的 WordPress 外掛(因此是「官方版」)。如果您希望保持最新狀態並且收到最新的錯誤修正,這個外掛可能是您最好的選擇。
此外掛會開啟一個訊息視窗,邀請手機使用者將應用程式新增至主畫面。目前,這個功能支援 iOS 和行動版 Chrome 瀏覽器。雖然其他裝置可以將任何網站新增至主畫面,但只有 iOS 和行動版 Chrome 有簡便的方法可處理此事。Windows Phone 支援將在未來版本中推出。
為了增強效能並降低複雜性,我僅支援每個裝置的最新兩個操作系統版本。
重要!請閱讀
Add To Homescreen 的開發是由 Apple 推出 apple-mobile-web-app-capable meta 標籤和其引入的 standalone 模式開始的。這是對網站開發人員來說好消息,因為他們可以發布全螢幕的網頁應用程式(而不只是網站)。隨著時間推移,這個程式逐漸擴展到更普遍的使用情境。
需要注意的是,我們無法使用任何本地事件知道使用者何時實際將網頁新增至主畫面。這也是為什麼這個程式看似很簡單,實際上卻變得如此複雜的原因。
除非您明確地將應用程式開發為 mobile-web-app-capable,否則此程式無法完成奇蹟,並且所有替代解決方案都必須被視為駭客手法。
基本配置提供了四種預設配置,唯一 100% 的安全解決方式是選擇匿名選項。這會停用使用者追蹤,但卻不會與您可能擁有的其他外掛產生干擾。
考慮到程式複雜性,在提出負面反饋之前,請提出支援請求或錯誤報告。這是我改進此軟體的唯一方式。感謝您!
授權
此 WordPress 外掛是根據 GPL 授權釋出。您可以免費個人和商業使用,但進一步修改和衍生作品必須遵守相同的 GPL 授權。
Add To Homescreen JavaScript 元件是基於 MIT 授權 釋出,基本上您可以任意使用。
外掛標籤
開發者團隊
原文外掛簡介
Official Add To Homescreen is a WordPress wrapper for the Add To Homescreen javascript plugin. This WordPress plugin guides you through the rather complicated javascript widget configuration.
This is the only WordPress plugin developed by the same author of the javascript widget (hence “official”). If you wish to be always up to date and receive the latest bug fixes, this plugin is probably your best bet.
The plugin opens a message inviting the mobile user to add the application to the home screen. This is currently supported on iOS and Mobile Chrome. While other devices have the ability to bookmark any website to the home screen, only iOS and Mobile Chrome have a straightforward way to do it. Windows Phone support is planned for a future release.
To enhance performance and reduce complexity I’m supporting the latest two OS version for each device only.
Important! Please read
Add To Homescreen development started when Apple introduced the apple-mobile-web-app-capable meta tag and standalone mode with it. It was a great news for web developers who had the opportunity to release full screen web applications (and not just websites). The script evolved over time and extended to a more general purpose use case.
It is important to note that there’s no native event we could hook to to know when a user actually added the page to the homescreen. That’s also the reason why this script has become so complicated despite the apparent simple task it has to accomplish.
Unless you explicitly developed your application to be mobile-web-app-capable, this script can’t do miracles and all the alternative solutions have to be considered hacks.
The Basic configuration gives you four presets, the only 100% fail-safe solution is to select the Anonymous option. This disables user tracking but it doesn’t interfere with other plugins you may have.
Considering the complexity of the script, before filing a negative feedback, please drop a support request or a bug report. It’s the only way for me to enhance this software. Thanks!
License
This WordPress plugin is released under the GPL license. You can use it free of charge for personal and commercial use, but further modifications and derivatives have to be released under the same GPL license.
The Add To Homescreen javascript component is released under MIT license, which basically means you can do whatever you want with it.
