diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d2b26db..581683ae1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,8 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- Web push notifications -## [0.1.3] - 2023.11 +## [0.1.3] - 2023.11.08 - 910f57ec7d2e50803ae3d04f4b927e0f5219fbde ### Added - Contact name editing ### Changed diff --git a/README.md b/README.md index 33acf9075..1f22caeda 100644 --- a/README.md +++ b/README.md @@ -94,10 +94,9 @@ For your own web-push tests, change the 'vapid' URL in App.vue, and install apps ### Clear/Reset data & restart -* Data: Clear the browser cache for localhost. -* Notifications: - * Under browser settings, look for "notification" and remove this server. - * Under about:debugging, find the service worker and Unregister. +* Clear cache for localhost. +* Unregister service worker (in Chrome, go to `chrome://serviceworker-internals/`; in Firefox, go to `about:serviceworkers` or `about:debugging`). +* Clear notification permission (in Chrome, go to `chrome://settings/content/notifications`; in Firefox, go to `about:preferences` and search). diff --git a/src/App.vue b/src/App.vue index 038ae3f31..585cdcc9e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -261,7 +261,7 @@ diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index 0bd14715d..cb6cf9718 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -625,7 +625,7 @@ export default class ProjectViewView extends Vue { } openOfferDialog() { - (this.$refs.customOfferDialog as OfferDialog).open(); + (this.$refs.customOfferDialog as typeof OfferDialog).open(); } } diff --git a/web-push.md b/web-push.md index 1869d950e..2ca35cd0d 100644 --- a/web-push.md +++ b/web-push.md @@ -390,3 +390,13 @@ While notifications are turned on, the user can tap on the App Notifications tog - "Turn off Notifications" to fully turn them off (which means the user will need to go through the dialogs agains to turn them back on). - "Leave it On" to make no changes and dismiss the dialog. + +# NOTIFICATION STATES + +* Unpermissioned. Push server cannot send notifications to the user because it does not have permission. + This may be the same as when the user gave permission in the past but has since revoked it at the OS or browser + level, outside the app. (User can change to Permissioned when the user gives permission.) +* Permissioned. (User can change to Unpermissioned via the OS or browser settings.) + * Active. (User can change to Muted when the user mutes notifications.) + * Muted. (User can change to Active when the user toggles it.) + (Turning mute off automatically after some amount of time is not planned in version 1.)