在ionic中加载URL显示空白屏幕 [英] Loading url in ionic shows blank screen

查看:116
本文介绍了在ionic中加载URL显示空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上搜索过,但是对此问题没有任何具体了解. 我使用的是ionic v1,其中我通过adfs网页加载adfs网址以要求用户登录,但仅在某些手机上我看到登录页面,而在其他手机上我看到空白屏幕. 我尝试调试它,但到目前为止,我没有得到任何建设性的内容(仅url). 我正在使用

I have searched on web but got nothing concrete about this issue. I'm using ionic v1, in which I'm loading my adfs url to ask user for login though adfs web page but only on some phones I see login page and on others I see blank screen. I tried debugging it but I got nothing[only the url] constructive so far. I'm loading url using

window.open("https://inve....", '_system');

到目前为止,我们仅在Android手机上遇到了此问题,但我也将iPhone定位为目标. 任何帮助将不胜感激.谢谢

So far we've encountered with this issue on Android phones only, but I'm targeting iPhones also. Any help will be appreciated. Thanks

推荐答案

应用浏览器,并为此离子应用加载带有网址的adfs登录页面.

app browser and loading adfs login page with url in it for this ionic app.

我遇到的问题是由于证书造成的,服务器正在使用自签名证书,因此当我尝试将其加载到设备上时,甚至没有在浏览器中打开服务器页面的应用程序曾经卡在白屏上

The prob I was facing was because of certificates, The server is using self signed certificate so when I'm trying to load it on the device who don't even opened server pages on browsers the app used to stuck on white screen.

如果您的服务器已由CA用适当的认证证书签名,则此问题将不会发生,因为浏览器能够轻松地验证这些证书. 这就是为什么之前带有正确证书的原因,我的android应用曾经可以在所有android手机上使用.

If your server is signed with proper certified certificate by CA then this prob will not occur as browsers able to validate these certificates easily. That's why earlier with right certificate My android app used to work on all android phones.

这里是链接了解您要在本地指定证书的过程.

Here is link to understand the process if you want to specify the certificates locally.

对于其他在这种情况下寻求帮助的人.

For other guys looking for help in this situation.

这篇关于在ionic中加载URL显示空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆