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.

Ionic 弹出框Toast插件的安装(Installation)

ionic cordova plugin add cordova-plugin-x-toast npm install @ionic-native/toast

Ionic 弹出框Toast插件支持的平台(Supported Platforms)

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

Ionic 弹出框Toast插件的用法(Usage)

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

constructor(private toast: Toast) { }

...`I'm a toast`, '5000', 'center').subscribe(
  toast => {