PWA

Business Background

PWA (Progressive Web App) is a type of software application built using web technologies like HTML, CSS, and JavaScript, but designed to provide a user experience similar to native mobile apps. PWAs are intended to work cross-platform, meaning they can run on any device or browser that supports them, whether a desktop, tablet, or mobile phone.

PWAs combine the best of web and mobile apps to provide a fast, reliable, and engaging user experience without requiring installation through an app store.

This functionality is especially useful for companies with, amongst others, field technicians (e.g., HVAC, telecom, or construction services) who need an app to manage work orders, check customer details, and update job statuses.

Titan Solution

With this option, you can turn your Titan Web project into a mobile app that can be used offline. For instance, when data is pushed to Salesforce while the device is offline, the data is cached locally and will be pushed as soon as the device is online again.

PWAs are an excellent choice for Salesforce-integrated applications where accessibility, performance, and offline functionality are essential. Whether for field services, partner portals, customer support, sales teams, or surveys, PWAs provide a seamless, fast, and cost-effective alternative to native apps while leveraging Salesforce’s real-time data capabilities.

Note:

The user has to be online at least once during the session for the PWA to work.

How to Guide

Configure the Progressive Web App

  1. Click the Gear icon to open the Project settings.
  2. Select the Tools option.
  3. Use the toggle switch to enable the PWA option. The Offline Mode option is enabled by default.
PWA toggle switch
PWA toggle switch
  1. Click the Gear icon. The Configure PWA Settings screen opens.
PWA Gear icon
PWA Gear icon
  1. Configure the manifest. This is mandatory.
    • The manifest is crucial to turning a regular web app into a PWA. It bridges the gap between traditional websites and mobile apps, enabling features like offline access, push notifications, and home-screen installation while providing users with a cohesive, app-like experience.
    • It is a JSON file that provides metadata about the web application. This file allows developers to control how the app behaves when installed on a user’s device and defines key details about its appearance and functionality.
    • The following must be completed:
      • Name: The full name of the application (displayed during installation or in the app store).
      • Short Name: A shorter version of the name, used with limited space (such as “Home screen”).
      • Description: A short description of the app, often used in app stores.
      • Display: This option defines the display mode. The options are standalone, browser, fullscreen, or minimal UI.
      • Orientation: This locks the app to a specific orientation, such as portrait or landscape.
    • A check mark is added next to the option on the left when all the mandatory items have been configured.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Configure the icons. This is mandatory.
    • The icons serve as the app’s visual identity and should align with your brand. By specifying icons instead of relying on a generic browser icon, you can control how the app appears when installed.
    • The following must be configured with these exact sizes:
      • 192 x 192 Icon Size
      • 512 x 512 Icon Size
  2. Click the Select image button to configure the two icon sizes. The Add an Image screen opens.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Do one of the following to add an image:
    • Choose an already uploaded image
    • Upload an image
    • Add an image URL
Add an Image screen
Add an Image screen
  1. Click the Apply button. The image links are added.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Configure the colors. This is mandatory.
    • The Web App Manifest file specifies these visual customization options to define the app’s appearance.
    • The following options must be configured:
      • Theme Color: This setting defines the color of the browser’s address bar or system UI when the PWA is launched.
      • Background Color: This setting specifies the background color of the PWA’s splash screen, which appears while the app is loading.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Configure the events. This is not mandatory, but you can use this functionality to inform users that they are online or offline by, for instance, showing a message.
  2. Click the Configure button for online events. The onOnline Event screen opens.
  3. Alternatively, click the Configure button for offline events. The onOffline Event screen opens.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Click the + icon next to the Start node.
onOnline Events screen
onOnline Events screen
  1. Use the available nodes to configure an action that will be triggered in the event the PWA goes online or offline, for instance, a  Salesforce ActionGenerate DocumentsSend emails, Redirects, Show messages, and more.
Add Node screen
  1. Configure a Salesforce Fetch. This will fetch data from Salesforce to the cache in memory.
  2. Use the toggle switch to enable the option.
  3. Click the Configure Salesforce Integration button. The Salesforce Integration screen opens.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Click the Create New button to configure a Salesforce Get.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the drop-down list to select an object in Salesforce.
  2. If necessary, add a description. The Trigger to execute the pull is automatically set to “User action.”
Map Salesforce fields screen
Map Salesforce fields screen
  1. Configure any conditions.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Under Mapping, use the drop-down list to select fields. You can select multiple fields.
  2. Click the Apply button.
Map Salesforce fields screen
Map Salesforce fields screen
  1. Click the Close button.
Salesforce Integration screen
Salesforce Integration screen
  1. Use the Process get drop-down list to select the integration.
  2. Click the Apply button.
Configure PWA Settings screen
Configure PWA Settings screen
  1. Save and Publish the project. The web page opens in a new tab.
  2. Click the Install [PWA name] icon in the address bar to install the PWA. A pop-up message will appear.
PWA icon
PWA icon
Note:

The following is shown on the pop-up:

This image has an empty alt attribute; its file name is image-143.png

  1. The 192×192 size icon.
  2. The PWA name.
  3. The project URL.
  1. Click the Install button.
    • The PWA opens in a focused window. The theme color is at the top of the PWA.
PWA opened
PWA opened

Clear Salesforce Cache Action

  1. Click the icon to open the list of elements.
  2. Click-and-drag a button to the canvas.
  3. Click the button’s On Click Action icon.
On Click Action icon
On Click Action icon
  1. Click the + icon next to the Start node.
+ icon
+ icon
  1. Click the PWA Clear SF Cache option and then click the Next button.
Add Node screen
Add Node screen
  1. Type a tag in the field and then click the Insert button. The node is added to the On Click Action screen.
  2. Click the Apply button.
On Click Action screen
On Click Action screen
  1. Save and Publish the project. When the button is clicked, the Salesforce cache will be cleared.

Update Salesforce Cache Action

  1. Click the icon to open the list of elements.
  2. Click-and-drag a button to the canvas.
  3. Click the button’s On Click Action icon.
On Click Action icon
On Click Action icon
  1. Click the + icon next to the Start node.
+ icon
+ icon
  1. Click the PWA Update SF Cache option and then click the Next button.
Add Node screen
Add Node screen
  1. Type a tag in the field and then click the Insert button. The node is added to the On Click Action screen.
  2. Click the Apply button.
On Click Action screen
On Click Action screen
  1. Save and Publish the project. When the button is clicked, the Salesforce cache will be updated.

Uninstall the PWA

  1. Click the Kebab icon and then click the Uninstall [Name] option.
Uninstall PWA
Uninstall PWA
  1. If necessary, click the Remove this app’s data from [browser] checkbox and click the Uninstall button.
Uninstall button
Uninstall button

Hidden Title

Need more help?

Titan logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.