Facebook登录后Safari无法打开页面

时间:2017-08-28 00:55:32

标签: facebook cordova firebase firebase-authentication

我试图按照firebase网站上的说明在cordova应用中实施第三方登录https://firebase.google.com/docs/auth/web/cordova但我在Safari中收到错误,而且#34; Safari无法打开页面,因为地址无效。"

我尝试了一些方法,包括验证info.plist设置,如下所示: Error : Safari can't open the page because the address is invalid ? Facebook integration

或者: iphone facebook login safari cannot open the page

甚至是这样的: iphone facebook login safari cannot open the page

对于最后一个,我看到了关于模拟器的评论,并在设备上进行了尝试,但它仍然无法正常工作。

我只是尝试执行测试,因此应用程序非常简单。这是我的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>FacebookAppID</key>
    <string>1234567890</string>
    <key>FacebookDisplayName</key>
    <string>myRealApp</string>
    <key>CFBundleURLTypes</key>
    <array>
      <dict>
        <key>CFBundleURLSchemes</key>
        <array>
          <string>fb1234567890</string>
        </array>
      </dict>
    </array>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleDisplayName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIcons</key>
    <dict/>
    <key>CFBundleIcons~ipad</key>
    <dict/>
    <key>CFBundleIdentifier</key>
    <string>com.mysite.myRealApp</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>0.0.1</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>0.0.1</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSAppTransportSecurity</key>
    <dict>
      <key>NSExceptionDomains</key>
      <dict>
        <key>ionic.local</key>
        <dict>
          <key>NSExceptionAllowsInsecureHTTPLoads</key>
          <true/>
        </dict>
        <key>myRealApp-519f4.firebaseio.com</key>
        <dict/>
      </dict>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
    </dict>
    <key>NSMainNibFile</key>
    <string/>
    <key>NSMainNibFile~ipad</key>
    <string/>
    <key>UIRequiresFullScreen</key>
    <true/>
  </dict>
</plist>

1 个答案:

答案 0 :(得分:0)

万一有人遇到这种情况,我可以通过将firebase升级到3.9版来解决这个问题。目前的版本是4.6.2,我想,也可以做到这一点。

谢谢, 韦恩