OWL
data_display
Install Prompt
Odoo 19 OWL component — Install Prompt (core)
Live preview
Interactive
Source excerpt
web/static/src/core/pwa/install_prompt.js
import { Component } from "@odoo/owl";
import { Dialog } from "@web/core/dialog/dialog";
import { isIOS } from "@web/core/browser/feature_detection";
export class InstallPrompt extends Component {
static props = {
close: true,
onClose: { type: Function },
};
static components = {
Dialog,
};
static template = "web.InstallPrompt";
get isMobileSafari() {
return isIOS();
}
onClose() {
this.props.close();
this.props.onClose();
}
}
Registry / API
- Registry name
InstallPrompt- Category
—- Module
web- Slug
install-prompt- Nav group
data_display