javascript - ionic 启动画面卡住

标签 javascript ios angularjs ionic-framework ibeacon

我正在开发一个 Ionic 1 项目。一切都运行良好,但几天后,闪屏在 iOS 上不会消失,而在 Android 上却会消失。 在 Google 上找不到帮助。这里有人有什么想法吗?来自

的控制台

代码:

2017-02-27 16:05:18.509136 MyApp[675:146852] Apache Cordova native platform version 4.3.1 is starting.

2017-02-27 16:05:18.510432 MyApp[675:146852] Multi-tasking -> Device: YES, App: YES

2017-02-27 16:05:18.620831 MyApp[675:146852] Using UIWebView

2017-02-27 16:05:18.624093 MyApp[675:146852] [CDVTimer][handleopenurl] 0.158012ms

2017-02-27 16:05:18.626880 MyApp[675:146852] [CDVTimer][intentandnavigationfilter] 2.615988ms

2017-02-27 16:05:18.627228 MyApp[675:146852] [CDVTimer][gesturehandler] 0.162005ms

2017-02-27 16:05:18.663198 MyApp[675:146852] [CDVTimer][file] 35.710990ms

2017-02-27 16:05:18.685646 MyApp[675:146852] [CDVTimer][splashscreen] 22.248030ms

2017-02-27 16:05:18.697926 MyApp[675:146852] [CDVTimer][statusbar] 12.024999ms

2017-02-27 16:05:18.701478 MyApp[675:146852] [CDVTimer][keyboard] 3.291011ms

2017-02-27 16:05:18.701717 MyApp[675:146852] [CDVTimer][TotalPluginStartup] 77.835977ms

2017-02-27 16:05:19.129788 MyApp[675:146852] Resetting plugins due to page load.

2017-02-27 16:05:20.621608 MyApp[675:146852] *** Assertion failure in -[CLLocationManager setAllowsBackgroundLocationUpdates:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/CoreLocationFramework/CoreLocation-2100.0.34/Framework/CoreLocation/CLLocationManager.m:649

2017-02-27 16:05:20.623636 MyApp[675:146852] *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInternalInconsistencyException> Invalid parameter not satisfying: !stayUp || CLClientIsBackgroundable(internal->fClient)

2017-02-27 16:05:20.642503 MyApp[675:146852] didChangeAuthorizationStatus

2017-02-27 16:05:20.642915 MyApp[675:146852] Invalid callback id received by sendPluginResult

2017-02-27 16:05:50.663236 MyApp[675:146852] deviceready has not fired after 5 seconds.

2017-02-27 16:05:50.663683 MyApp[675:146852] Channel not fired: onCordovaInfoReady

2017-02-27 16:05:50.663962 MyApp[675:146852] Channel not fired: onFileSystemPathsReady

2017-02-27 16:05:50.664506 MyApp[675:146852] Channel not fired: onCordovaConnectionReady

2017-02-27 16:05:50.664951 MyApp[675:146852] ERROR: [Cordova-Plugin-IBeacon] WARNING did not receive delegate ready callback from DOM after 30.000000 seconds!

如此多的错误互相跟随!

最佳答案

事实证明,我的 cordova.js 并不是 index.html 中的最后一个包含项。导致 JS 绑定(bind)失败,无法调用我隐藏闪屏的就绪函数

关于javascript - ionic 启动画面卡住,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42489188/

相关文章:

c# - C# 如何让文本显示在按钮上?

ios - FBAudienceNetwork SDK 4.22.0加载原生广告没有填充

javascript - 如何刷新 ui-grid 中的一行?

javascript - 使用 Firebase 5.6.0 注销

javascript - 限制文本框以特定字符开头

javascript - 如何在Javascript中插入元素变量并在单击按钮后显示它?

ios - 有没有办法消除我今天的扩展下的差距

javascript - 自定义指令中的 Angular UI 指令

angularjs - 如何在不创建新范围的情况下将一个部分包含到另一个中?

javascript - Leafletjs - 数组中存在传单点