1.0.0 • Published 3 years ago

quasar-app-extension-pwa-installer v1.0.0

Weekly downloads
3
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

Quasar PWA Installer

PWA installer is a Quasar App Extension aimed at PWA developers looking to create a customized install experience for their app, for example a banner with an Install button:

example

NOTE: As of December 2020 it's still not possible to trigger PWA install programatically on iOS Safari. See compatibility link below.

Features

The extension registers a pwa-installer Vuex store module which allows you to hook into the PWA installation flow by exposing several states and a couple of methods.

States

NameTypePossible valuesDescription
displayModeStringbrowser tabstandalonestandalone-ios
eventBeforeInstallPromptEventThe captured beforeinstallprompt event which will be fired when the user triggers your custom install prompt.
userChoiceOutcomeStringaccepteddismissedA reference to the outcome of the captured event (BeforeInstallPromptEvent.userChoice.outcome)
isCustomPromptDismissedBooleanAllows you to track whether the user dismissed your custom UI.

Methods

NameDescription
promptTriggers the native install prompt.
dismissCustomPromptHides your custom install UI.

Install

quasar ext add pwa-installer

Quasar CLI will retrieve it from the NPM registry and install the extension to your project.

Uninstall

quasar ext remove pwa-installer

Useful links

Support

Feel free to contribute pull requests and ideas or open an issue, I'll do my best to look at it in the same century.

1.0.0

3 years ago