# PWA

### 1. Upload the files below

1. Preview the manifest: [manifest.json](https://fa9ff54b7f7b1d1edc7b4cf1ed235366.cdn.bubble.io/f1684266069540x287426851963005000/manifest.json)
2. Preview the service worker: [service-worker.js](https://fa9ff54b7f7b1d1edc7b4cf1ed235366.cdn.bubble.io/f1684266046321x984585135361086600/service-worker.js)

Download Files from [Google Drive](https://drive.google.com/drive/folders/1pOJ_lV0scq7Yak2tzi-x6bnGWlqunanc?usp=sharing)

<figure><img src="/files/IBz0HegNQxeWnyngnOJz" alt=""><figcaption></figcaption></figure>

### 2. Copy the scripts below

Script/meta tags in header

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

Script in the body

```javascript
<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

<figure><img src="/files/p9jjtU87ipaDPaA4R4PL" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %} <mark style="color:orange;">**NOTE:**</mark> <mark style="color:orange;"></mark><mark style="color:orange;">This feature only works on a paid bubble.io plan</mark>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bb-docs.gitbook.io/bubweb-doc/help-guide/getting-started/pwa.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
