-
Notifications
You must be signed in to change notification settings - Fork 1.9k
"Missing Command Error" when running in browser #318
Comments
Wrap the code in some condition so it's not executed in the browser. There simply is no backend for the javascript code in the browser because the plugin is only available on iOS, Android and Windows for obvious reasons. |
Then why does the plugin mention support for the "browser" platform? That's a bit confusing. |
That documentation states: Supported PlatformsAndroid |
Hmm. Sorry about that. I got confused when I saw that the plugin installed itself into the "browser" platform directory.
|
Not sure why cordova says they support the browser platform and whether it's different in phonegap. I had the exact same 'Missing Command Error' error reported in the Chrome dev console (that's how I found this thread) and looking at the Cordova file plugin repository, they claim they do support the browser platform: both here https://www.npmjs.com/package/cordova-plugin-file and here https://github.com/apache/cordova-plugin-file So does this mean the question still remains open? |
@dorontal no, we added browser support awhile back. |
Got it, thanks. So my problem still stands. Here's my code snippet that causes it:
and here's the most recent Chrome browser's dev-console output:
[ NOTE: Has anyone seen similar problems reported:
when trying to use the cordova / phonegap file plugin in chrome? I read both the 'chrome quirks' and 'browser quirks' sections of the README but did not see anything applicable - perhaps I missed something. Thanks! EDIT: my apologies, just realized I posted here in the wrong place. It may not be related to the original question. Will figure out where to post appropriately. |
error "Missing Command Error" |
Are we supposed to see this message? I got this message when I tried adding cordova-plugins-admob-free into cordova plugins. Does this mean that are certain plugins that only work with iOS/android/windows phone and won't be able to show up on browser? |
This thread has been automatically locked. |
After installing the plugin and calling init(), when I run the app in my browser I get this back from the "error" event:
This error is not descriptive enough. I don't know what's going wrong.
The text was updated successfully, but these errors were encountered: