cordova.Js:1223 deviceready has not fired after 5 seconds.cordova.Js:1216 Channel not fired: onCordovaConnectionReadycordova.Js:1216 Channel not fired: onCordovaInfoReady
码:
document.addEventListener("deviceready",onDeviceReady,false);function onDeviceReady() { console.log("READY");}
这也行不通:
document.addEventListener("backbutton",onBackKeyDown,false);function onBackKeyDown(){ console.log("backbutton pressed");}
更多信息:
cordova version: 6.4.0node: 7.0.0 Installed platforms: androID 6.0.0 browser 4.1.0java version "1.8.0_101"Java(TM) SE Runtime Environment (build 1.8.0_101-b13)Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13,mixed mode)
和安装的插件:
cordova-plugin-compat 1.0.0 "Compat"cordova-plugin-console 1.0.4 "Console"cordova-plugin-crosswalk-webvIEw 2.1.0 "Crosswalk WebVIEw Engine"cordova-plugin-device 1.1.3 "Device"cordova-plugin-device-motion 1.2.2 "Device Motion"cordova-plugin-geolocation 2.4.0 "Geolocation"cordova-plugin-globalization 1.0.4 "Globalization"cordova-plugin-network-information 1.3.0 "Network information"cordova-plugin-screen-orIEntation 1.4.2 "Screen OrIEntation"cordova-plugin-splashscreen 4.0.0 "Splashscreen"cordova-plugin-whiteList 1.3.0 "WhiteList"uk.co.workingedge.phonegap.plugin.istablet 1.1.0 "Is tablet"
你有什么想法有什么不对吗?
解决方法 我也有同样的问题.请试试这个.cordova plugin rm cordova-plugin-device<br>cordova plugin rm cordova-plugin-network-information<br>cordova run androID
您的应用将无法正常运行.但您的应用程序将收到deviceready事件.
据我所知,cordova-plugin-file也会阻止deviceready事件.和别的.
cordova-plugin-crosswalk-webvIEw: OKcom.borismus.webintent: OKcordova-plugin-admobpro: OK
解决:只需安装最新的插件.
插件发布 – Apache Cordova
https://cordova.apache.org/news/2016/09/14/plugins-release.html
以上是内存溢出为你收集整理的更新后 – cordova不会触发deviceready事件全部内容,希望文章能够帮你解决更新后 – cordova不会触发deviceready事件所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)