Having trouble integrating a Vue.js app into Cordova. Everything seems to be working fine, except I'm unsure how to capture Cordova events (deviceready, pause, etc.) within my Vue application. Using the Webpack template from vue-cli.
This is my file js/index.js
:
// code here...
The contents of src/main.js
:
// code here...
config/index.js :
// code here...
webpack.base.conf.js :
// code here...
webpack.prod.conf :
// code here...
Here's my project structure:
https://i.stack.imgur.com/TxJD4.png
Any suggestions on how I can receive Cordova events in my Vue components?