This plugin provides a way to use native toasts of android devices.
cordova plugin add cordova-plugin-toaster
This plugin defines methods on navigator.notification
and navigator
.
Although in the global scope, they are not available until after the deviceready
event.
Usage example:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
navigator.showToast('Your toast\'s text here');
}
- showToast - to show toast
- Android