简体   繁体   English

科尔多瓦inappbrowser Facebook登录白屏

[英]Cordova inappbrowser facebook login white screen

I have been trying to login to my Cordova project using inappbrowser and web app facebook javascript sdk its working fine on the native browser but when using Inappbrowser it gets stuck on a white screen and freezes there... has anyone else came across this issue as well? 我一直在尝试使用inappbrowser和网络应用程序facebook javascript sdk登录到我的Cordova项目,它在本机浏览器上工作正常,但是当使用Inappbrowser时,它被卡在白屏上并冻结在那里...还有其他人遇到此问题吗?好? Inappbrowser version 1.2.1 Inappbrowser版本1.2.1

Many thanks 非常感谢

Yes i have the same issue and i am using version 1.3.0 是的,我有同样的问题,我正在使用版本1.3.0

I think its due to the Facebook redirect uri, When i login or share from inappbrowser Facebook processes the request and the only way is to hit the back button. 我认为这是由于Facebook重定向uri所致,当我从不兼容的浏览器登录或共享时,Facebook处理该请求,唯一的方法是单击后退按钮。

current versions 当前版本

PGB CLI 5.2.0 IAB 1.3.0 PGB CLI 5.2.0 IAB 1.3.0

I had the same problem to fix it I removed all plugins and add again, since my project was running in an old version of phonegap. 由于我的项目在旧版本的phonegap中运行,因此我有同样的问题要修复,因此我删除了所有插件并再次添加。

Are you testing in ios ? 您在ios中进行测试吗?

If so, another configuration that I did is in the .plist of project for the keys "NSAppTransportSecurity" and "NSAllowsArbitraryLoads" (true) 如果是这样,我所做的另一种配置是在项目的.plist中,用于键“ NSAppTransportSecurity”和“ NSAllowsArbitraryLoads”(true)

Here is my .plist: 这是我的.plist:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"         "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        ...
        <key>NSAppTransportSecurity</key>
        ...
        <dict>
          <key>NSAllowsArbitraryLoads</key>
          <true/>
          ...
        </dict>
      </dict>
    </plist>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM