[SOLVED] Meteor add cordova:cordova-plugin-x-toast@2.7.2, and then, what?


#1

Hi there, I’m new on meteor and I’d like to trigger a toast message (inherent of the OS, I’m testing it on android). I know that cordova has a plugin for it and I’ve found this : https://www.npmjs.com/package/cordova-plugin-x-toast

$ meteor add cordova:cordova-plugin-x-toast

No problem until here. But now, what should I do ? I try to add something in the Meteor.startup() without success (toast or Toast or whatever I tried is not defined). I guess this doesn’t concern the server anyway because it’s only a front end feature.

I didn’t find any more informations on the meteor documentation. Could you tell me how to make it on this plugin precisely ?

Thank you


#2

Did you read the usage section of the readme? It said to use: window.plugins.toast


#3

Yes I tried and I got an error with “window” object but I just tried it again and it works. Probably a typo, sorry for the inconvenience, problem solved