["漸進式網路應用程式"]
我們建議所有應用程式都要支援漸進式網路應用程式功能以獲得更好的用戶體驗。
漸進式網路應用程式功能可令手機使用ArOZ Online時獲得流暢的體驗。以下是File explorer於漸進式網路應用程式模式下的體驗。
為了令你的程式支援漸進式網路應用程式功能,你需要係程式同加上數行代碼。你亦可以參閱Google定義。
簡單而言,你需要加這行代碼於之中
<link rel="manifest" href="manifest.json">
以下是音樂模組的 manifest.json
。
{
"name": "ArOZ Audio",
"short_name": "AudioA",
"icons": [{
"src": "img/pwa/128.png",
"sizes": "128x128",
"type": "image/png"
},{
"src": "img/pwa/192.png",
"sizes": "192x192",
"type": "image/png"
}, {
"src": "img/pwa/256.png",
"sizes": "256x256",
"type": "image/png"
}, {
"src": "img/pwa/512.png",
"sizes": "512x512",
"type": "image/png"
}],
"start_url": "index.php?mode=pwa",
"display": "standalone",
"scope": "./",
"background_color": "#f7f7f7",
"theme_color": "#4286f4"
}
以下是所有音樂模組的圖片(位於 img/pwa/ ).