close-box Documentation

PWA Bunga! PWA JS

This file contains functions that will allow your web application to have an improved user experience, similar to that of a native application installed on a mobile device or computer.

The pwabunga.js file of PWA Bunga! will allow:

  • file-document pwabunga.js

Service worker registration

pwaRegister(): Service worker registration

The pwaRegister() function allows the registration of the service worker, namely creating or updating it.

See the documentation for the pwaRegister() function

Improved user experience

pwaInstall(): Promotion and PWA install button

The pwaInstall() function improves the user experience by customizing the entire PWA installation process.

See the documentation for the pwaInstall() function

pwaUpdate(): Application update

The pwaUpdate() function improves the experience when updating the PWA.

See the documentation for the pwaUpdate() function

pwaShare(): Using device native sharing

The pwaShare() function improves the user experience of sharing the application on social networks.

See the documentation for the pwaShare() function

pwaParams(): PWA parameters insert

The pwaParams() function offers a parameter insert with the display of the PWA version and the management of authorizations.

See the documentation for the pwaParams() function

Permissions

pwaNotification(): Request for authorization to send notifications

The pwaNotification() function offers the user a button to authorize the sending of notifications.

See the documentation for the pwaNotification() function

pwaGeolocation(): Geolocation authorization request

The pwaGeolocation() function allows the user to be offered a button to authorize geolocation.

See the documentation for the pwaGeolocation() function