こんにちは、私はこのエラーを取得しています:これは私のURLはインストール可能なウェブアプリケーション
{
"name": "SIMIC project",
"short_name": "simic",
"icons": [{
"src": "images/simic-bn.png",
"type": "image/png",
"sizes": "32x32"
},
{
"src": "images/simic-bn.png",
"type": "image/png",
"sizes": "144x144"
}],
"start_url": "/wta/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#1e88e5"
}
です:これは私のmanifest.jsonをが
Site cannot be installed: no matching service worker detected. You may need to reload the page, or check that the service worker for the current page also controls the start URL from the manifest
です: "MYDOMAIN:8889/WTA /"、これが私のコードの構造です:
-mydomain
--- WTA
------ CSS/
------フォント/
------画像/
------ JS/
------ index.htmlを
------ manifest.jsonを
私は何をしないのですか? THX
あなたの答えはthaks!私はあなたの言うことを理解していますが、私は奉仕ワーカーに何を書かなければなりませんか?あなたが書いたコードはサービスワーカーを指しているjsファイルですね。 "service-worker.js"には何が含まれていますか? –
私はこのリンクに従っています:https://codelabs.developers.google.com/codelabs/add-to-home-screen/#5 ....これを追加しました: "self.addEventListener( 'fetch'、function(event ){ \t \t });私のサービス作業ファイルにあります。それはうまく動作します! –