Gilson Gilbert Gilson Gilbert - 7 days ago 5
Android Question

Android toast in Cordova App

I am building an app with jquery mobile and corodova.
I am searching for a plugin that can be used for creating android toast notification from my app.

Had checked one named

cordova-plugin-toast
but it is showing that is only for blackberry. Link to the plugin: https://www.npmjs.com/package/cordova-plugin-toast

Suggest me a way to display toast.

Thanks in advance.

Answer

You may use this : cordova-plugin-x-toast (https://www.npmjs.com/package/cordova-plugin-x-toast)

In your config.xml file, add
< gap:plugin name="cordova-plugin-x-toast" source="npm" />

The usage is explained in https://www.npmjs.com/package/cordova-plugin-x-toast#4-usage

Comments