Access web journeys in the native NHS App
Work in progressHow to adapt your web journey so users can access it in the native NHS App, using a web overlay.
Overview
For the first native NHS App release, users will start their journeys on native menu screens. If they then select a website-hosted NHS App service from one of those menu screens, it will open in a web overlay.
In the longer term, our ambition is to make the app more fully native. This may mean rebuilding certain web journeys using native code in the future.
Which type of overlay to use
Custom web view
Use a custom web view if you need to customise or control how a journey is presented in the NHS App.
This applies to:
- website-based app journeys – such as requesting a repeat prescription or viewing test results
- all NHS website journeys – whether they are authenticated, such as 111 online, or unauthenticated, such as Health A to Z and App help
- authenticated third-party journeys – such as online consultations, Wayfinder integrations and Be Part of Research
- the "Give feedback on the NHS App" survey – which contains links to the NHS website that we need control over
Web browser overlay
Use a standard web browser overlay (Safari View or Chrome Custom Tabs) for journeys you do not need to customise or control.
This applies to unauthenticated, third-party information websites. For example, online pharmacy websites.
How to adapt your journey for a custom web view
Add a title to the toolbar
Give the web view a title that matches the name of the service. Check with a content designer, but this will usually match with the card link that leads into the service. For example, “Request a repeat prescription”.
Hide elements that could confuse users
On the first page of the journey, hide the back button. Include the back button on every other page.
Work with designers to check for any other website elements that may be better removed or hidden from the custom tab. For example, links to external website that may lead users stranded outside of the main journey.
Hiding website headers can help reduce users' confusion about where they are. On NHS website pages, we hide the NHS website header (including the search bar) and the breadcrumb links at the top of the page. This prevents users from navigating to other parts of the NHS website and getting lost, which we've seen happen often in past user research.
Help users exit the overlay
Include an X button in the toolbar so that users can exit easily.
This applies on every page apart from the final screen of transactional services, where you should include a “Done” button instead.
If users select the X at a point after they may have started entering data or making choices, show an alert to make sure they really want to close the overlay.
Do not include an alert:
- on journeys with no data input
- on the first page of journeys, at which point users will not have entered any information yet
Alerts should consistently use the content shown in the example above, which adheres to iOS and Android platform design guidance.
Open in-journey links in a sheet
While users are completing their main task in a full-screen overlay, they may select links from within that journey that go elsewhere. Use a sheet to open these links.
A sheet is a partial overlay that slides up over the main journey, keeping it visible underneath. This shows users they have taken a temporary step, which they can dismiss to get back to where they were.
The sheet we use to open NHS website pages is also a custom web view.
For links to third-party websites or services, the sheet should usually be a web browser overlay (Safari View or Chrome Custom Tabs) instead of a custom web view.
The principle is the same. The sheet keeps the page they were reading underneath, so they can read the external site and dismiss it to return.
An exception is the "Give feedback" journey. Although it's an unauthenticated, third-party journey, we use a full-screen custom web view rather than the web browser overlay. That lets us control how the NHS website links within the journey open. We open those links as custom web view sheets.
Include an app help button at the bottom of the custom web view
Users may get stuck or have questions while they complete website-based app journeys, such as requesting a repeat prescription or booking a GP appointment.
Use the bottom of the custom web view to continually display an app help button during these journeys. For information about routing the button to a relevant help page, see our guidance on giving users access to help while they use the NHS App.
Help improve this pattern
The NHS App design system team would like to hear:
- how you have used this pattern in your service
- any feedback you have about its usage, for example accessibility or ideas for improvement
Add these comments to the 'Access web journeys in the native NHS App' discussion on GitHub.