dialogs not showing in IOS cordova

你离开我真会死。 提交于 2019-12-11 16:52:08

问题


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.

I am using cordova-plugin-dialogs 1.1.1 in both apps.

I found this JIRA

https://issues.apache.org/jira/browse/CB-9441

But I dont want to create a new plugin to fix this.

Are there any way to workarround this issue, or which plugin is on top of the UIVIewController?

Cordova version 5.3.3

cordova-plugin-dialogs 1.1.1

IOS version 9.1

Thanks


回答1:


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



来源:https://stackoverflow.com/questions/35358006/dialogs-not-showing-in-ios-cordova

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!