Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はそれを一度見ました、そして私はそれを再び見つけることができません:
iPhoneのWebアプリがURL入力または踏み台のアイコンから開かれたかどうかをJavaScriptで検出する方法は?
ありがとう!
ページが全画面モードで開かれたかどうかを検出できます。
if (window.navigator.standalone) { // } else { // }
次のメタタグが付いたホーム画面アイコンから起動されたページは、全画面モードで開きます。
<meta name="apple-mobile-web-app-capable" content="yes" />