问题描述
我有一个cordova应用,我必须显示几个警报.
I have a cordova app, and I have to show several alerts.
在同一应用程序中的另一个应用程序中,它们运行良好,但是我当前的应用程序存在问题
In another app, in the same device, they work well, but I have a problem in my current app
对话框应显示的时间.它什么也没做,但是如果我展开通知栏,则会神奇地显示该对话框.
when the dialog should show. It does nothing, but if I expand the notification bar, the dialog magically appears.
我在两个应用程序中都使用cordova-plugin-dialogs 1.1.1.
I am using cordova-plugin-dialogs 1.1.1 in both apps.
我找到了这个JIRA
I found this JIRA
https://issues.apache.org/jira/browse/CB-9441
但是我不想创建一个新的插件来解决这个问题.
But I dont want to create a new plugin to fix this.
是否有任何方法可以解决此问题,或者UIVIewController顶部是哪个插件?
Are there any way to workarround this issue, or which plugin is on top of the UIVIewController?
科尔多瓦版本5.3.3
Cordova version 5.3.3
cordova-plugin-dialogs 1.1.1
cordova-plugin-dialogs 1.1.1
IOS 9.1版
谢谢
推荐答案
这是由javascript错误引起的.我正在开发过程中,在编写此代码之前发生了一些崩溃. javascript仍然可以正常工作,但是看起来像在ios中一样,每次崩溃后都会创建一个新的视图实例,因此,解决了我的javascript错误(与之完全无关),也解决了此问题
It was caused for a javascript error. I was in development process, and I had some crashes before this code. The javascript keeps working, but looks like that in ios, a new view instance is created after each crash, so fixing my javascript errors (totally unrelated with this), fixed this issue too
这篇关于对话框未在IOS Cordova中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!