1
我想設置使用下面的清單JSON-文件的Web應用程序的默認方向:Web應用程序的清單:默認方向的設置被忽略
{
"manifest_version": 2,
"version": "0.9",
"short_name": "My Web App",
"name": "My Web App in Portrait Mode",
"icons": [
{
"src": "/homescreen-icon.png",
"sizes": "196x196",
"type": "image/png"
}
],
"start_url": "/index.php",
"display": "fullscreen",
"orientation": "portrait",
"theme_color": "#5a8238",
"background_color": "#1a2a08"
}
使用鉻合金的開發人員工具,我可以檢查清單已經正確地加載和一切看起來罰款:方向設置爲portrait
(和顯示fullscreen
)。
但添加的Web應用程序在移動Chrome瀏覽器主屏幕,然後從那裏打開它,我仍然可以在橫向查看Web應用程序。
對此的任何幫助表示讚賞。謝謝。
仍然不爲我工作... –