kartsims / vue-cordova

Vue.js plugin for Cordova
http://kartsims.github.io/vue-cordova
328 stars 71 forks source link

Device not ready, Plugins array empty ? #9

Closed nddr closed 7 years ago

nddr commented 7 years ago

When I console.log(Vue.cordova) I received this,

{deviceready: false, plugins: Array[0]}

I have installed phonegap-plugin-barcodescanner, which is what I'm trying to get working. I also have cordova-plugin-crosswalk-webview installed, which seems to be working just fine.

Browser and Android platforms are installed.

Thanks

kartsims commented 7 years ago

You need to wait for the deviceready event, see README

nddr commented 7 years ago

Yes, I've done this and it is never ready. Just sits at false.

kartsims commented 7 years ago

Could you please provide an example ? Also there is a repo named vue-cordova-demo, did you try to clone that and make it work ?

nddr commented 7 years ago

I'm looking at the demo now .. I see that cordova is a dependency, although if I add cordova to my project I get errors, saying there are missing dependencies. I thought cordova cli was only installed globally ...

kartsims commented 7 years ago

Did you try the demo and install it as per the README ?

I don't understand why it wouldn't work on your setup while it does on every one else's...

Unless there is something wrong with the library itself, you should post on a QA site such as StackOverflow. It is important to include an example so that other people that know nothing about your particular setup can help.

You can post the link here when you have created the question, I may try to help too.

imrealashu commented 7 years ago

Any luck on this ?