Progressive Webapp (PWA) + Offline

Demo to preview the settings

Introduction

This plugin allows you to convert your Bubble app into a Progressive Webapp (PWA).
This will allow your users to install your App on their homescreen. A splash screen will also be shown to the sure while loading the PWA.
The Plugin Automatically generates all meta tags and manifests JSON for you. It also allows you to Upload Splash Screens for different iOS Device Sizes, as Apple is very strict regarding this and only shows the splash screen if the correct file is used (according to the device orientation)
This Plugin also installs service workers and therefore offers offline functionality.

Features

Video Overview & Instructions
Image without caption

⚠️Installation warning⚠️

Each element has the Install action that is used to install the app on your device. But, based on official documentation the installation process may varies by the browser and by platform.

Desktop

Mobile

How to Setup

  1. After installing the Plugin, head over to the Plugins tab and fill out the three Keys "App Name, Nav Button Color, and Theme Color".
    1. Make sure to use a hex code for the Nav Button Color (eg: #ffffff).
  1. Next, drag the PWA element onto the page which should be converted into a PWA. Fill out all the fields in the element inspector according to the documentation.
    1. Image without caption
      Please be aware that Apple is quite strict regarding Splash Screens. Splash Screens are only shown correctly on iOS devices if you specify and upload a file for all the different device orientations.
  1. You can upload all the different splash screen files with different sizes (in pixels) in the element inspector.
    1. We know that it is very tedious to do this, so we would recommend you use a tool such as https://appsco.pe/developer/splash-screens to generate the files.

Service Workers + Offline Functionality (Requires Paid Bubble Plan)

The instructions are the same as for the other element, except for one Step.
  1. If you want to install Service Workers and enable Offline Functionality, drag the PWA + Service Worker Element onto your page.
    1. Image without caption
  1. Visit the URL https://s3.amazonaws.com/appforest_uf/f1618832588005x566671081254037200/sw.js and download the file hosted there "sw.js" to your device.
  1. Open the file using a text or code editor. At the top of the file, there is a line saying "var urlsToCache =" and then a list of two URLs.
  1. Please keep the /sw.js url! The other URL "/" can be replaced by you with the URL of your pwa.
  1. If your PWA should load the index page of your app, you can leave the URL as is. Save any changes to your file.
  1. Head over to Settings->SEO/Metatags of your bubble application and scroll to the bottom where it says "host files in the root directory."
  1. Upload the file you saved, and make sure it is named sw.js. Once the file is uploaded, hit save and deploy your application to live.

Video saved for offline view

⚠️
If you want to implement a feature that saves video on device, please use this file instead of above mentioned (after download, be sure to unzip it and indicate all URLs of the stored videos).
sw_js.rar
0.5KB
Image without caption

Plugin Elements Properties

This plugin has 2 (two) visual elements which can be used on the page.

PWA

The element that allows to convert the app into a PWA.
Image without caption
Element Fields
Element Actions
Element States

PWA + Service Worker

The element that allows to convert the app into a PWA with service worker features.
Image without caption
Element Fields
Element Actions
Element States
Image without caption

Changelogs