iOS Custom App Salesforce - SSL Error while trying to connect to salesforce on 4G

253 Views Asked by At

We have an iOS iPad app which is built using Salesforce Mobile SDK. Last two days we are facing issues while syncing work back to Salesforce. When they try to sync, it shows this error,

"Server Error - Can't connect to server. An SSL error has occured and a secure connection the server cannot be made."

It works absolutely fine when connected to wifi and sync the data. Also there seems to be no problem while using hotspot from a mobile data. Has anyone faced this issue and know what might be causing this issue? Any help would be appreciated. Thanks!

1

There are 1 best solutions below

3
Daljeet On

Add below in Info.plist:

<key>NSAppTransportSecurity</key>
 <dict>
      <key>NSAllowsArbitraryLoads</key>
     <true/>
 </dict>