Android 上的 Ti.UI.WebView:网页未显示 [英] Ti.UI.WebView on Android: webpage is not being displayed
问题描述
我在我的应用中使用 WebView.此 WebView 必须显示外部网页.它在 iOS 上运行良好,但在 Android 上却出现白屏.
I am using a WebView in my app. This WebView must display an external webpage. It works fine on iOS, but on Android I get a white screen.
在控制台中我看到这个警告:W/cr.BindingManager:无法调用determinedVisibility() - 从未见过pid 的连接
In the console I see this warning: W/cr.BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid
我在 WebView 的加载事件中添加了调试消息.当我在那里调用 getHtml 方法时,我看到正在检索 html.我不知道为什么它不显示?
I added debug messages inside the load event of the WebView. When I call the getHtml method there I see that the html is being retrieved. I have no idea why it is not being displayed?
我在 stackoverflow 上发现了一些类似的问题(与 Titanium 无关的问题),但这些问题并没有为我指明解决方案.这是我发现的问题之一:
I find some similar issues on stackoverflow (issues that were not related with Titanium) but this issues did not point me to a solution. Here is one of the issues I've found:
Android Webview:无法调用determinedVisibility() -从未见过 pid 的连接
我希望有人能指出我正确的方向.提前致谢!!
I hope someone can point me in the right direction. Thanks in advance!!
推荐答案
我们已经解决了问题
BindingManager:无法调用determinedVisibility() - 从未见过pid 的连接
BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid
为了
libEGL: validate_display:255 错误 3008 (EGL_BAD_DISPLAY)
libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY)
通过为 android 使用以下 WebView:http://gitt.io/component/de.marcelpociot.webviewfragment ,其中包含以下修复:https://jira.appcelerator.org/浏览/TIDOC-1548
by using the following WebView for android: http://gitt.io/component/de.marcelpociot.webviewfragment , which contains fixes for : https://jira.appcelerator.org/browse/TIDOC-1548
这篇关于Android 上的 Ti.UI.WebView:网页未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!