2017-08-28 198 views
0

我想實現在每個指令的科爾多瓦應用在火力網站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> 
+0

你創建的Facebook網頁OAuth用戶端或移動OAuth用戶端?對於Firebase Auth Cordova OAuth支持,您必須使用網絡OAuth客戶端。 – bojeil

+0

我正在使用網絡OAuth客戶端。 –

+0

你有沒有解決過這個問題?我面臨同樣的錯誤 –

回答

0

以防萬一有人說到這個,我能夠通過升級火力到3.9版本,以解決這個問題。目前的版本是我想象的4.6.2,也可以做到這一點。

感謝, 韋恩

相關問題