phonegap inappbrowser https页面未加载 [英] phonegap inappbrowser https pages not loading

查看:118
本文介绍了phonegap inappbrowser https页面未加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android Gingerbread手机上使用phonegap 3.5我注意到https链接不起作用

Using phonegap 3.5 on a Android Gingerbread phone I've noticed that https links do not work

例如:

window.open("http://google.com", "_blank", "location=yes")

工作正常,但

window.open("https://google.com", "_blank", "location=yes")

只需打开一个空白屏幕。有没有其他人遇到这个,可能有什么变通方法?我需要这样做的原因是FB auth重定向

just opens a blank screen. Has any anyone else run into this, and what workarounds might there be? The reason why I need to do this is for FB auth redirects which

推荐答案

将此代码添加到MainActivity文件

Add this code to your MainActivity file

    public void onReceivedSslError(WebView view,
                SslErrorHandler handler, SslError error) {
        Log.e("Error", "Received SSL error"+ error.toString());
        handler.proceed();
    }

这将是奇迹。

这篇关于phonegap inappbrowser https页面未加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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