我正在開發一個移動web應用程序。目前我有這個片段的jQuery的代碼檢查,如果應用程序正在運行全屏:相當於Android的iPhone的「添加到主屏幕」?
if (!window.navigator.standalone)
{
$('#content').before('<div class="notice">To enjoy the mobile experience to its fullest, tap the arrow button on the toolbar below, choose <b>Add to Home Screen</b>, then launch it from there.</div>');
}
我有幾個問題:
- 支持Android手機
window.navigator.standalone
工作? - 用戶將移動Web應用程序添加到主屏幕的過程是什麼?我試圖尋找瀏覽器截圖,但沒有找到任何可靠的來源。
-
是否有相當於iPhone的「apple-touch-icon」鏈接元素?找到了answer to this here。
我有一個模擬器的快速打法,你可以書籤的網頁主屏幕(它甚至拿起蘋果觸摸圖標)。但是打開頁面並不是全屏顯示。你是否說目前沒有辦法讓Android網頁在瀏覽器中全屏顯示? – DisgruntledGoat 2011-04-21 20:41:13