You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/07/12 17:36:40 UTC
[GitHub] [cordova] kristijan97 opened a new issue #139: Cordova never fires
deviceready event
kristijan97 opened a new issue #139: Cordova never fires deviceready event
URL: https://github.com/apache/cordova/issues/139
# Bug Report
Cordova app is sucessfully build but I never get a deviceready event, which means that I cannot use its plugins like firebase. There is one thing which I noticed, maybe it is important. windows element doesn't have attached prototype Firebase
### What does actually happen?
Everything works fine - app is build, signed and deployed on phone, but deviceready event never fires
## Information
main.js / App.vue :
created() {
setTimeout(() => { this.initCordova }, 10000); //test
document.addEventListener('deviceready', this.initCordova);
}
methods: {
initCordova() {
alert('Initialized');
window.FirebasePlugin.grantPermission();
...
}
}
### Command or Code
cordova build ios --release
### Environment, Platform, Device
### Version information
XCode 10.12.1
platform: ios 5.0.1
plugins:
cordova-plugin-firebase 2.0.5
cordova-plugin-whitelist 1.3.4
codebase: vue
npm 6.9.0
macOS Mojave
target phone: iPhone 4s & 7
## Checklist
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org