| 1 |
# Using the progressive web app (PWA) |
| 2 |
While ntfy doesn't have a native desktop app, it is built as a [progressive web app](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps) (PWA) |
| 3 |
and thus can be **installed on both desktop and mobile devices**. |
| 4 |
|
| 5 |
This gives it its own launcher (e.g. shortcut on Windows, app on macOS, launcher shortcut on Linux, home screen icon on iOS, and |
| 6 |
launcher icon on Android), a standalone window, push notifications, and an app badge with the unread notification count. |
| 7 |
|
| 8 |
Web app installation is **supported on** (see [compatibility table](https://caniuse.com/web-app-manifest) for details): |
| 9 |
|
| 10 |
- **Chrome:** Android, Windows, Linux, macOS |
| 11 |
- **Safari:** iOS 16.4+, macOS 14+ |
| 12 |
- **Firefox:** Android, as well as on Windows/Linux [via an extension](https://addons.mozilla.org/en-US/firefox/addon/pwas-for-firefox/) |
| 13 |
- **Edge:** Windows |
| 14 |
|
| 15 |
Note that for self-hosted servers, [Web Push](../config.md#web-push) must be configured for the PWA to work. |
| 16 |
|
| 17 |
## Installation |
| 18 |
|
| 19 |
### Chrome on Desktop |
| 20 |
To install and register the web app via Chrome, click the "install app" icon. After installation, you can find the app in your |
| 21 |
app drawer: |
| 22 |
|
| 23 |
<div id="pwa-screenshots-chrome-safari-desktop" class="screenshots"> |
| 24 |
<a href="../../static/img/pwa-install.png"><img src="../../static/img/pwa-install.png"/></a> |
| 25 |
<a href="../../static/img/pwa.png"><img src="../../static/img/pwa.png"/></a> |
| 26 |
<a href="../../static/img/pwa-badge.png"><img src="../../static/img/pwa-badge.png"/></a> |
| 27 |
</div> |
| 28 |
|
| 29 |
### Safari on macOS |
| 30 |
To install and register the web app via Safari, click on the Share menu and click Add to Dock. You need to be on macOS Sonoma (14) or higher. |
| 31 |
|
| 32 |
<div id="pwa-screenshots-safari-desktop" class="screenshots"> |
| 33 |
<a href="../../static/img/pwa-install-macos-safari-add-to-dock.png"><img src="../../static/img/pwa-install-macos-safari-add-to-dock.png"/></a> |
| 34 |
</div> |
| 35 |
|
| 36 |
### Chrome/Firefox on Android |
| 37 |
For Chrome on Android, either click the "Add to Home Screen" banner at the bottom of the screen, or select "Install app" |
| 38 |
in the menu, and then click "Install" in the popup menu. After installation, you can find the app in your app drawer, |
| 39 |
and on your home screen. |
| 40 |
|
| 41 |
<div id="pwa-screenshots-chrome-android" class="screenshots"> |
| 42 |
<a href="../../static/img/pwa-install-chrome-android.jpg"><img src="../../static/img/pwa-install-chrome-android.jpg"/></a> |
| 43 |
<a href="../../static/img/pwa-install-chrome-android-menu.jpg"><img src="../../static/img/pwa-install-chrome-android-menu.jpg"/></a> |
| 44 |
<a href="../../static/img/pwa-install-chrome-android-popup.jpg"><img src="../../static/img/pwa-install-chrome-android-popup.jpg"/></a> |
| 45 |
</div> |
| 46 |
|
| 47 |
For Firefox, select "Install" in the menu, and then click "Add" to add an icon to your home screen: |
| 48 |
|
| 49 |
<div id="pwa-screenshots-firefox-android" class="screenshots"> |
| 50 |
<a href="../../static/img/pwa-install-firefox-android-menu.jpg"><img src="../../static/img/pwa-install-firefox-android-menu.jpg"/></a> |
| 51 |
<a href="../../static/img/pwa-install-firefox-android-popup.jpg"><img src="../../static/img/pwa-install-firefox-android-popup.jpg"/></a> |
| 52 |
</div> |
| 53 |
|
| 54 |
### Safari on iOS |
| 55 |
On iOS Safari, tap on the Share menu, then tap "Add to Home Screen": |
| 56 |
|
| 57 |
<div id="pwa-screenshots-safari-ios" class="screenshots"> |
| 58 |
<a href="../../static/img/pwa-install-safari-ios-button.jpg"><img src="../../static/img/pwa-install-safari-ios-button.jpg"/></a> |
| 59 |
<a href="../../static/img/pwa-install-safari-ios-menu.jpg"><img src="../../static/img/pwa-install-safari-ios-menu.jpg"/></a> |
| 60 |
<a href="../../static/img/pwa-install-safari-ios-add-icon.jpg"><img src="../../static/img/pwa-install-safari-ios-add-icon.jpg"/></a> |
| 61 |
</div> |
| 62 |
|
| 63 |
## Background notifications |
| 64 |
Background notifications via web push are enabled by default and cannot be turned off when the app is installed, as notifications would |
| 65 |
not be delivered reliably otherwise. You can mute topics you don't want to receive notifications for. |
| 66 |
|
| 67 |
On desktop, you generally need either your browser or the web app open to receive notifications, though the ntfy tab doesn't need to be |
| 68 |
open. On mobile, you don't need to have the web app open to receive notifications. Look at the [web docs](./web.md#background-notifications) |
| 69 |
for a detailed breakdown. |