Notifications
How to turn on Notifications in a browser, in a Home Screen web app on iOS and in the Mobile App, and how to remove a Push Subscription.
A Notification tells you that something needs you: an approval, a question, a failed Run or a missed Call. Pagis sends it as a Web Push to each browser and app where you turn on Notifications, also when no Pagis window is open. Each of these browsers and apps holds a Push Subscription. ADR-0030 holds the decision.
Open Settings → Notifications in the Product App. The page shows the state of this browser, and it lists every Push Subscription of yours.
Turn on Notifications in a browser
- Open Pagis in Chrome, Edge, Firefox or Safari, on a computer or on an Android phone.
- Open Settings → Notifications and select Turn on.
- The browser asks if the site can show notifications. Select Allow.
The page then shows On, and the list shows the browser as "This browser". Select Send a test on its row to get a Notification at once.
A browser gives the Push API only to a secure address: https://, or
http://localhost. On another http:// address, the page shows that
notifications are not available.
Turn on Notifications on an iPhone or an iPad
On iOS and iPadOS 16.4 and later, only a web app on the Home Screen gets Notifications. A Safari tab does not, and in a Safari tab the page shows these steps:
- Open Pagis in Safari.
- Select Share, then Add to Home Screen.
- Open Pagis from the Home Screen. The web app does not share the cookies of Safari, so sign in again in the web app.
- Open Settings → Notifications and select Turn on. Then select Allow.
Turn on Notifications in the Mobile App
- In the Mobile App, open Settings → Notifications and select Turn on.
- The phone asks if Pagis can send notifications. Select Allow.
The page then shows On, and the list shows the app as "This app". In a browser, the list names it "Pagis on iPhone", "Pagis on iPad" or "Pagis on Android".
The app gets each Notification through the Pagis Push Relay, which forwards it to Apple or Google. The Push Relay, Apple and Google see only the encrypted Notification. Only the phone holds the key that decrypts it.
When you select Don't Allow, the page shows that the phone blocks notifications from Pagis. Open the Settings app of the phone, find Pagis, and turn on its notifications. Then open the page again.
On an iPhone or an iPad, the app decrypts each Notification and shows its text. When the app cannot decrypt or read a Notification, it shows "Pagis" and "Something needs you" in place of the text.
On an Android phone, the app also decrypts each Notification and shows its text. A Notification for an approval, a Run that waits for you or a Keypad Code delay shows in the channel "Needs you". Each other Notification shows in the channel "Activity". To change how a channel alerts you, open the Settings app of the phone and find the notifications of Pagis. When the app cannot decrypt or read a Notification, it shows "Pagis" and "Something needs you".
Open a Notification in the Mobile App
Select a Notification to open its place in Pagis, for example the Thread of an approval, with the approval card in view. When Pagis is open already, it goes to that place and does not load again. A Notification that names a place on another server opens Home.
When you open the Mobile App, it removes each Notification of something that does not need you now, for example an approval that you answered in a browser. On an iPhone or an iPad, the number on the app icon shows how many things need you.
Allow notifications that the browser blocks
When you select Block at the question of the browser, the page shows that this browser blocks notifications from the site. Pagis cannot ask again. Allow notifications for the site in the browser, then open the page again:
- Chrome and Edge: select the icon at the left of the address, and set Notifications to Allow.
- Firefox: select the icon at the left of the address, and clear the blocked permission to send notifications.
- Safari on a Mac: open Safari → Settings → Websites → Notifications, and set the site to Allow.
- A Home Screen web app on iOS: open the Settings app of the phone, select Notifications, then Pagis, and turn on Allow Notifications.
Answer an approval from a Notification
Chrome, Edge and Firefox, on a computer and on an Android phone, show two buttons on a Notification of an approval: Approve once and Deny. Select one to answer the approval without opening Pagis. The browser sends the answer with your sign-in, and the Run continues with your answer.
- Approve once lets the Agent do this one action.
- Deny refuses the action.
When Pagis does not take the answer, the Notification shows "Pagis did not take this answer. Open Pagis to see the request." This occurs when another browser or app answered first, when your sign-in ended, or when Pagis did not answer in 20 seconds. Select the Notification to open the approval.
In the Mobile App on an iPhone or an iPad, touch and hold a Notification of an approval to show Approve once and Deny. When the phone is locked, it asks for Face ID, Touch ID or the passcode before it sends the answer. Pagis does not open. When Pagis takes the answer, the Notification goes away. When Pagis does not take it, the app shows the same text as a browser. Select that Notification to open Pagis.
In the Mobile App on an Android phone, a Notification of an approval shows Approve once and Deny. If you do not see them, expand the Notification. On Android 12 and later, when the phone is locked, it asks you to unlock it before it sends the answer. Pagis does not open. When the phone has no network, the answer waits for the network. When Pagis takes the answer, the Notification goes away. When Pagis does not take it, the app shows the same text as a browser. Select that Notification to open Pagis.
Safari on a Mac and in a Home Screen web app on iOS shows no buttons on a Notification. Select the Notification to open the approval card.
Always allow is only in the approval card, because the card shows what the rule covers. Open the approval to make a rule.
Turn off Notifications
Select Turn off in Settings → Notifications. The browser ends its Push Subscription, and Pagis deletes it. In the Mobile App, Pagis deletes the Push Subscription, and the app deletes its registration with the Push Relay.
The list of Push Subscriptions
The list shows each Push Subscription of yours, in each browser and app where you turned on Notifications. Each row names the browser or the app of its Session, as Settings → Sessions does, or "This browser" for the browser that you use now. The row shows when Pagis last sent a Notification to it.
- Send a test sends a Notification with the text "Notifications work here." The row then shows what the push service answered.
- Remove deletes the Push Subscription. That browser or app gets no Notification until you turn on Notifications there again.
A Push Subscription belongs to one Session. It also ends when its Session ends, at sign-out or when you remove the Session in Settings → Sessions, and when the push service of the browser tells Pagis that the subscription ended.
The list of the server is the truth. When this browser holds a Push Subscription that the server does not list, the page ends the subscription in the browser and shows Off. This occurs after you sign in again, for example. Select Turn on to get Notifications again. The Mobile App also shows Off after you sign in again, and Turn on uses its registration with the Push Relay again.
The Client App
The Client App gets no Notification, because Electron gives no push service. Its Settings → Notifications tells you to turn on Notifications in a browser. The Client App shows the Needs-You Queue on Home, the count in the sidebar and the sound cues.