Toast

Contents

This plugin allows you to show a native Toast (a little text popup) on iOS, Android and WP8. It's great for showing a non intrusive native notification which is guaranteed always in the viewport of the browser.

https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-x-toast npm install @ionic-native/toast
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/toast

Supported Platforms

  • Android
  • BlackBerry 10
  • iOS
  • Windows
  • Windows Phone 8

Usage

import { Toast } from '@ionic-native/toast/ngx';

constructor(private toast: Toast) { }

...

this.toast.show(`I'm a toast`, '5000', 'center').subscribe(
  toast => {
    console.log(toast);
  }
);