Safari无法打开页面后,Facebook的登录
问题描述:
我想实现在每个指令的科尔多瓦应用在火力网站https://firebase.google.com/docs/auth/web/cordova第三方登录,但我在Safari中收到一个错误,“Safari无法打开网页,因为地址是无效的。”Safari无法打开页面后,Facebook的登录
我尝试了一些事情,包括验证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>
答
以防万一有人说到这个,我能够通过升级火力到3.9版本,以解决这个问题。目前的版本是我想象的4.6.2,也可以做到这一点。
感谢, 韦恩
你创建的Facebook网页OAuth用户端或移动OAuth用户端?对于Firebase Auth Cordova OAuth支持,您必须使用网络OAuth客户端。 – bojeil
我正在使用网络OAuth客户端。 –
你有没有解决过这个问题?我面临同样的错误 –