1. Home
  2. Blog
  3. Progressive Web App (PWA)

Add Swipe Navigation to a Standalone WordPress PWA

Someone installs your site to their home screen, opens it, taps through to an article, and then wants to go back. They reach for the browser’s back button and find nothing there. That is how the standalone display mode works. It is also the quickest way an installed WordPress PWA starts to feel broken.

Progressify has a simple fix for this, and it is free: swipe navigation. Turn it on and visitors get swipe-from-edge gestures for back and forward inside the installed app, the same gesture they already use in native apps.

This post covers only swipe navigation: why standalone mode needs it, how to turn it on, when to use it with the tab bar, and how to test it.

Why standalone mode strands people

The Progressify web app manifest has three display modes, and the docs describe them plainly:

  • standalone opens in its own window with no browser chrome. It is the default and the usual choice.
  • fullscreen covers the entire screen, including the system status bar. It suits games and media.
  • minimal-ui gives the app its own window but keeps a minimal set of browser controls such as back and reload.

Standalone is the mode that makes a site feel like an app, because the address bar and toolbar go away. The back button goes with them. On a phone with a system back gesture this is partly covered. On many devices, and inside deep content, a visitor three taps into your site has no obvious way to retrace their steps.

The Progressify docs say this directly: standalone relies on your own in-app navigation, so pair it with the navigation tab bar or swipe navigation. Without one of them, visitors in a standalone app can get stranded.

What swipe navigation does

Swipe navigation is a single toggle in Progressify > UI Components > Navigation. It is off by default. When it is on:

  • A swipe in from the edge of the screen moves back or forward through the pages the visitor has opened.
  • No layout changes and no theme edits are needed. The gesture is layered over what you already run.

The docs call it a lighter alternative to the tab bar, and worth enabling alongside the tab bar in standalone mode. Lighter is the key word. A tab bar takes up the bottom of every screen. A swipe gesture takes up nothing until someone uses it.

Swipe, tab bar, or both

Swipe only suits sites where reading flows forward and back: blogs, documentation, recipe sites, news. People mostly want “back to the list”, and a swipe does exactly that.

Tab bar only suits sites with a few clear destinations, such as a shop, account, cart and search. The Pro navigation tab bar pins those tabs to the bottom of the screen. If you want the details, our post on adding a bottom navigation tab bar to a WordPress PWA goes through it.

Both is what the docs recommend for standalone mode. The tab bar handles “take me somewhere else” and the swipe handles “take me back”. They do not compete, because one is a jump and the other is a step.

If neither fits, switch the display mode to minimal-ui and keep the browser’s own back and reload controls. You give up some of the app feel and nobody gets stuck.

Setting it up

  1. In Progressify > Web App Manifest, check the display mode. If it is standalone, read on. If it is minimal-ui, the browser already provides back.
  2. Open Progressify > UI Components and turn on Swipe Navigation under Navigation.
  3. Optional: on Pro, turn on the Navigation Tab Bar too and add four or five items. The docs warn that more than that makes labels unreadable on a narrow screen.
  4. Save, then install the site on a real phone and test it there. A desktop browser tab is not the same environment.

Testing it properly

Install the PWA from your own phone and try the paths real visitors take:

  • Home, then a category, then a post. Swipe back twice. You should land on home.
  • Open a post from a push notification or a shared link, so it is the first page in the app. Swipe back and see what happens. There is no earlier page, so nothing should break.
  • Go through a form or checkout step. Make sure a swipe does not catch a carousel or slider by accident. If a page relies on horizontal swipes, such as a gallery, test it carefully.
  • Try it in portrait and landscape.

Common mistakes

Keeping standalone with no navigation at all. This is the stranded-visitor problem. Pick swipe, the tab bar, or minimal-ui.

Expecting swipe to replace a menu. It moves back and forward through history. It does not help someone find a page they have not visited yet. Your site menu still does that job.

Testing only on desktop. Edge gestures belong to touch screens. Check on the phones your visitors actually use.

Where this sits in Progressify

Swipe navigation is one of the app-like interface options in Progressify, along with the tab bar, dark mode, pull to refresh and smooth page transitions. Each one is a separate switch, so you can add the one that fixes a real problem and leave the rest off.

Swipe navigation is in the free version. The tab bar, push notifications and the other Pro features are covered by one licence across all DaftPlug plugins; see pricing. Start by turning on swipe navigation, installing the app on your own phone, and trying to get lost.