This is a migrated thread and some comments may be shown as answers.

Ajax request not working in Cordova/Phonegap iOS

1 Answer 188 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
imran
Top achievements
Rank 1
imran asked on 27 Oct 2016, 09:14 AM
Hello! I am using Telerik visual studio plugin to build mobile apps in Phonegap. I am currently facing an issue in iOS where none of the web services working whereas in Android device it seems ok. I googled out and found that since iOS they change app transport settings in info.plist. I even tried that but it still not working in iOS device. Kindly help.

I am working on a Phonegap mobile app. Everything working fine in Android device but when I test on iOS device none of the web services working. I googled out and found that since iOS 9 they changed app transport security setting. In Info.plist file it also included as well. Anyone can help.

I am working on a Phonegap mobile app. Everything working fine in Android device but when I test on iOS device none of the web services working. I googled out and found that since iOS 9 they changed app transport security setting. In Info.plist file it also included as well. Anyone can help.

I am working on a Phonegap mobile app. Everything working fine in Android device but when I test on iOS device none of the web services working. I googled out and found that since iOS 9 they changed app transport security setting. In Info.plist file it also included as well. Anyone can help.

I am working on a Phonegap mobile app. Everything working fine in Android device but when I test on iOS device none of the web services working. I googled out and found that since iOS 9 they changed app transport security setting. In Info.plist file it also included as well. Anyone can help.

I am working on a Phonegap mobile app. Everything working fine in Android device but when I test on iOS device none of the web services working. I googled out and found that since iOS 9 they changed app transport security setting. In Info.plist file it also included as well. Anyone can help.

I am working on a Phonegap mobile app. Everything working fine in Android device but when I test on iOS device none of the web services working. I googled out and found that since iOS 9 they changed app transport security setting. In Info.plist file it also included as well. Anyone can help.

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 01 Nov 2016, 09:05 AM
Hi Imran,

Based on your description, I assume that whitelisting for iOS isn't configured in your application.

Apache Cordova 4.0 and above incorporates the Apache Cordova domain whitelisting—a security model which provides a configurable security policy to define which external sites may be accessed. To enable whitelisting in your iOS application and allow HTTP/HTTPS request the app:
  1. Open the iOS Config.xml file in your project, as described here.
  2. Follow the steps outlined in the official Apache Cordova Whitelist Guide

If this does not help, I order to continue my investigation, I will need a sample application that clearly reproduces the issue. I'd recommend that you open a support ticket, which is private and comes with a guaranteed response time and share the requested application  there.

Regards,
Preslav
Telerik by Progress
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
imran
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or