-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve PWA config for better browser support
Fixes #56 Update PWA configuration and service worker registration to improve robustness and compatibility with mobile web browsers. * **Manifest Configuration:** - Add `"scope": "/"` to define the navigation scope. - Add `"description": "A text display app"`. - Add `"related_applications": []` to specify related applications. * **Service Worker Registration:** - Update the service worker registration to use `/sw.js` instead of `/service-worker.js`. * **InstallPWA Component:** - Add a check for `navigator.standalone` to detect if the app is already installed on iOS. - Add a check for `window.matchMedia('(display-mode: standalone)').matches` to detect if the app is already installed on Android. * **WelcomeModal Component:** - Add a check for `navigator.standalone` to detect if the app is already installed on iOS. - Add a check for `window.matchMedia('(display-mode: standalone)').matches` to detect if the app is already installed on Android. * **Workbox Configuration:** - Update the `swDest` to `dist/sw.js` instead of `dist/service-worker.js`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/harperreed/orbiting/issues/56?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
1885567
commit def26ce
Showing
5 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ module.exports = { | |
/^utm_/, | ||
/^fbclid$/ | ||
] | ||
}; | ||
}; |