PWA

Publishing your app as a PWA to the native store

1. Upload the files below

  1. Preview the manifest: manifest.json

  2. Preview the service worker: service-worker.js

Download Files from Google Drive

2. Copy the scripts below

Script/meta tags in header

<link rel="manifest" href="/manifest.json"/>

Script in the body

<script>
 if ('serviceWorker' in navigator) {
window.addEventListener('load', function() {
 navigator.serviceWorker.register('/service-worker.js', { scope: '/' }).then(function(registration) {
 // Registration was successful
 console.log('ServiceWorker registration successful with scope: ', registration.scope);
 }, function(err) {
 // registration failed :(
 console.log('ServiceWorker registration failed: ', err);
 });
});
}
</script>

3. Paste the scripts in the SEO/metatags settings

NOTE: This feature only works on a paid bubble.io plan

Last updated