Android PWA Installation and Push Notification Setup
Installing the PWA
Step 1: go to the forum on your phone, in the browser you want to use for the PWA. Make sure you are on the homepage, don’t navigate elsewhere; wherever you are when you install the PWA becomes your PWA’s homepage.
Step 2: Tap on the three dots next to the address bar to open your page settings. If not on Chrome, this is where you would normally go to do things like add to favorites, get the page link, etc.
Step 3: Look for the options to “Install and Create Shortcut”, or “Add to Phone” and tap it.
Step 4: You should now have a popup asking you what you would like the name of your install to be. Name it “Barbermonger”, or whatever other name you like. Tap Install or Okay.
Step 5: Wait for a minute or two. Speed of install depends on your phone. When completed, you’ll get a notification saying the app has been installed.
And that’s it! You officially have the PWA installed on your phone. You can now proceed to set up your push notifications.
How to Set Up Your Push Notifications
The only real downside to a PWA versus a native Android app is that Android makes setting up the notifications a bit of an involved process. It requires some initial setup to get working. The good news is, it’s a one-time setup. Once you do it once, as long as the PWA is installed on your phone, you’ll never have to do it again.
[!attention] BEFORE YOU DO ANYTHING ELSE!
Completely close the PWA app on your phone (open your app drawer/app tray, swipe up to clear it) and reopen it to restart it. This is like rebooting your PC.
Sometimes, when the app is first installed or when you are reinstalling, the service worker that sets up the push notifications does not turn all the way on the first time. The site will still let you set up, but nothing will happen and you won’t get the confirmation notification.
By closing the app and reopening, you make sure the service worker is turned all the way on so the push notifications can go through.
Part 1: The Forum Setup
The first step is on the forum itself. Open the PWA, and on the menu bar, tap your user icon, then Preferences. Scroll to the right in the Preferences menu and tap on “Notifications”.
The setting you want for your phone is “Live Notifications”. On first time setup, it should say disabled. If you’re coming back to set up your notifications again, or if you’re redoing your notification settings, it may be on a different option.
You have two options here: Enabled will send you push notifications for ANY forum activity that appears on the Notification bell tab. Enabled for chat only means you’ll only get a push notification for anything happening in the chat.
Once you’ve picked either Enabled or Enabled for chat only, scroll all the way down and tap “Save Changes”.
[!tip]
Coming back here because you’ve had an issue with your notifications? Make sure your Live notifications is on DISABLED, hit Save Changes, then select your enable option and hit Save Changes again. Disabling then hitting ‘Save Changes’ before re-enabling resets the notifications on your PWA.
If you successfully enabled push notifications, you should immediately get a test confirmation notification on your phone letting you know the enabling was successful. If that doesn’t appear, try the tip above. Failing that, close the app and reopen and repeat the steps.
Part 2: The PWA Itself
Now that you have the push notifications enabled on the forum, the rest of the changes will be done in your phone’s App Settings.
Go to the App Settings for the Barbermonger PWA on your phone. How you do this depends on what kind of phone you have, but should generally be the same if you’re on the same version of Android. The below screenshots are all from a Google Pixel 9XL running on Android 17.
Once you’re in the App Info/App Settings, first tap on “Notifications” and make sure Notifications are enabled. At the same time, make sure any kind of Notification organizer your phone may have is turned off; Android in particular will treat the notifications as “low priority” and try to silence them:
Next, go back to the App Info/App Settings and find the App Battery Usage setting and tap on it. You want background usage to be turned ON at minimum:
If you find you’re having issues getting notifications still, tap on the background usage settings and set the Barbermonger app to be “unrestricted”. Why? Optimized can sometimes still put the PWA to sleep in the background despite what you just set above, and you won’t get notifications until you open the PWA again. Then you’ll suddenly get all your notifications at once.
Finally, the last step: go back to App Info/App Settings again and find the Unused App settings. If you want to ensure you continue to receive notifications even if you aren’t actively using the PWA anymore, set “manage app if unused” to OFF:
And that’s it! You should now receive all notifications you’ve set to have on for the forum and the chat. 