Jump to content
Welcome to our new Citrix community!
  • 0

Using Cordova MicroVPN ios plugin for AJAX call on Ios


Stanley Leung

Question

According to MAM SDK docs, it appears for Ajax requests we have to use cordova-plugin-fetch plugin.

 

Currently our porject is using JQuery .Ajax function, does Cordova MicroVPN ios plugin supports Jquery Ajax call? or we have to move all jquery ajax call to corodva-fetch?  please give us some examples.

 

Thanks

Link to comment

3 answers to this question

Recommended Posts

  • 0
14 hours ago, Ashutosh Tiwari1709162712 said:

You should be able to use the JQuery .Ajax functions with the Cordova MicroVPN iOS plugin without the use of cordova-fetch. Please let us know if you run in to any issues.

 

Thanks,

Is jsonp call supported?

Like:

$.ajax({
                type: "get",
                async: false,
                url: "http://xxxxxxxxxxxx",
                dataType: "jsonp",
                timeout: 10000,
                jsonp: "callback",
                jsonpCallback: "xxxHandler",
                success: function (json) {

                   //some code 
                },
                error: function (xhr, textStatus, errorThrown) {
                    //handle error

                }
            });

Link to comment
  • 0
5 hours ago, Stanley Leung said:

Is jsonp call supported?

Like:

$.ajax({
                type: "get",
                async: false,
                url: "http://xxxxxxxxxxxx",
                dataType: "jsonp",
                timeout: 10000,
                jsonp: "callback",
                jsonpCallback: "xxxHandler",
                success: function (json) {

                   //some code 
                },
                error: function (xhr, textStatus, errorThrown) {
                    //handle error

                }
            });


You can use any type of calls as long as they are supported by Cordova. So, yes you can try that and let us know if you face any issue related to Cordova MicroVPN iOS plugin.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...