-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we test this plugins in browser? #19
Comments
Nope you can't. Cordova plugins can only be used when Cordova is loaded. On a device or in a simulator. You can however do this to have a fallback for running it in the webbrowser: function showToast(msg) {
if (window.plugins && window.plugins.toast) {
// do your toast
} else {
// toast fallback
alert(msg);
}
} |
ohk ! |
Is it possible to re-open that and actually create the browser platform version? http://www.raymondcamden.com/2014/09/24/Browser-as-a-platform-for-your-PhoneGapCordova-apps |
|
It's been two years, but it seems https://github.com/apache/cordova-browser is picking up speed - it would be awesome if this issue can be re-opened! |
I love the idea of having a browser implementation, but that has to go the PR route.. |
Can we test this plugins in browser? Mine throws error when tested in browser?
The text was updated successfully, but these errors were encountered: