When my cordova application is running, I redirected the application to my web application on the server using the InAppBrowser plugin, the stream works fine like my web application, but I want to provide a button on the server code, which when clicked should call the plugin, for example, considers Toast like this
window.plugins.toast.showLongBottom('Hi! you are trying to access cordova plugin from external link')
consider code like this
<button id="toast_btn">Show Toast</button> $('#toast_btn').click(function(){ window.plugins.toast.showLongBottom('Hi! you are trying to access cordova plugin from external link') });
but at present he cannot call a toast
I would appreciate any help on this issue, as I will follow the same method for my future development.
source share