Hello,
No idea if anyone has ever experienced this issue before but I cannot get the deviceready event to fire with the VUE cli3.
I keep seeing this in the console:
deviceready has not fired after 5 seconds.
Here is my main.ts
import ‘babel-polyfill’;
import Vue from “vue”;
import App from “./App.vue”;
import Vuetify from “vuetify”;
import router from “./router”;
import { store } from “./store”;
import “./registerServiceWorker”;
import “vuetify/dist/vuetify.min.css”;
import “material-design-icons-iconfont/dist/material-design-icons.css”;
Vue.use(Vuetify);
Vue.config.productionTip = false;
if (
navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|IEMobile)/)
) {
document.addEventListener("deviceready", onDeviceReady, false);
} else {
onDeviceReady(); //this is the browser
}
function onDeviceReady() {
new Vue({
router,
store,
render: h => h(App)
}).$mount("#app");
}
Thank you