Ajax request not working in Cordova/Phonegap iOS

2 posts, 0 answers
  1. imran
    imran avatar
    2 posts
    Member since:
    Oct 2016

    Posted 27 Oct Link to this post

    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.

  2. Preslav
    Admin
    Preslav avatar
    49 posts

    Posted 01 Nov Link to this post

    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.

     
Back to Top