$cordovaFacebook ngCordova not work on ios9


#1

i used $cordovaFacebook, before update to ios9 for my device and xcode7 everything work fine. After that, my app can’t run. When i change bitcode = no at project setting, app can run but when login facebook it run with in app browser not switch to facebook app. Someone got bug or have solution fix it so help me, please. Sr my english so bad!


#2

See this issue ticket:

A temporary fix is recommended at the bottom. When Apache Cordova fixes their plugin for iOS 9, things will improve.


#3

It not work for me. Because my problem is when login facebook, it work fine (used in app browser) but not switch to facebook app has setup on device. thanks for your help


#4

Hi !

Edit : Project => Ressources => Info.plist (right click => open as => source code)

Add this :

<key>NSAppTransportSecurity</key>
    <dict>
      <key>NSExceptionDomains</key>
      <dict>
        <key>facebook.com</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSTemporaryExceptionMinimumTLSVersion</key>
            <string>TLSv1.1</string>
        </dict>
      </dict>
   </dict>

#5

tks for help, i fixed it ~ 10 day before :smiley:


#6

Hi qdeveloper!,
sorry,
How did you solve it?
Info.plist solution don’t work for me,
not switch to facebook app.
Thanks


#7

I fixed!
I needed

<key>LSApplicationQueriesSchemes</key>
    <array>
      <string>fbapi</string>
      <string>fbapi20130214</string>
      <string>fbapi20130410</string>
      <string>fbapi20130702</string>
      <string>fbapi20131010</string>
      <string>fbapi20131219</string>
      <string>fbapi20140410</string>
      <string>fbapi20140116</string>
      <string>fbapi20150313</string>
      <string>fbapi20150629</string>
      <string>fbauth</string>
      <string>fbauth2</string>
      <string>fb-messenger-api20140430</string>
    </array>