diff --git a/platypush/backend/http/webapp/src/App.vue b/platypush/backend/http/webapp/src/App.vue index bc48a6ea0..f10cd04b8 100644 --- a/platypush/backend/http/webapp/src/App.vue +++ b/platypush/backend/http/webapp/src/App.vue @@ -68,6 +68,14 @@ export default { this.initConfig() }, + beforeMount() { + window.addEventListener('beforeinstallprompt', (e) => { + e.preventDefault() + if (confirm('Would you like to install the application for more features?')) + e.prompt() + }) + }, + mounted() { bus.onNotification(this.onNotification) },