Dialogs

Contents

This plugin gives you ability to access and customize the device native dialogs.

https://github.com/apache/cordova-plugin-dialogs

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-dialogs npm install @ionic-native/dialogs
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/dialogs

Supported Platforms

  • Amazon Fire OS
  • Android
  • Browser
  • iOS
  • Windows

Usage

import { Dialogs } from '@ionic-native/dialogs/ngx';

constructor(private dialogs: Dialogs) { }

...

this.dialogs.alert('Hello world')
  .then(() => console.log('Dialog dismissed'))
  .catch(e => console.log('Error displaying dialog', e));