Completed

HTTP Post call with Ionic Native Http connection Error Android

Need help with fixing couple of issues in Icon mobile development.

1. Not able to get http connection in some android versions. problem described below

2. Apple not able to display data in some iphones.

I am trying to make an HTTP Post call with Ionic Native Http and cordova-advanced-http-plugin. The call works on some android devices, but I am getting an error on others, and the call never goes through.

Here is the code that I am using for the HTTP call:

login(username, password, domain: String) {

[login to view URL]();

var url = 'http://' + domain + '/api/Active/UserLogin';

var data = {

UserName: username,

Password: password

}

[login to view URL]('nocheck');

[login to view URL]('*', 'content-type','application/json');

//Important to set the data serializer or the request gets rejected

[login to view URL]('json');

[login to view URL](url, data, {}).then(res =>{

var response = [login to view URL]([login to view URL]);

if ([login to view URL]) {

[login to view URL](TOKEN_KEY, [login to view URL]);

[login to view URL]("userID", [login to view URL]);

[login to view URL]("domain", [login to view URL]());

[login to view URL](true);

} else {

[login to view URL]();

[login to view URL]('The username, password, or domain was incorrect');

}

})

.catch(err =>{

[login to view URL]();

[login to view URL](err);

});

}

Skills: Android, Angular.js, Ionic Framework, Mobile App Development

See more: android http post, http post php android, android http post file, http post file upload android, android http post upload, upload file using http post android, android upload http post php, connection http post, http post android ios, http post tutorial android upload, ionic native http, teamviewer connection error android, ssl connection error android, ionic native http example

About the Employer:
( 0 reviews ) exton, United States

Project ID: #19999773

Awarded to:

vis007

Hello, I’m vishal and full stack developer and can solve your problem i think its cors issue as per you said its working on some phones. Thanks Vishal

$35 USD in 2 days
(2 Reviews)
0.7

10 freelancers are bidding on average $36 for this job

beautymaria

Hello I CAN FIX YOUR ISSUE IN AN HOUR! I have vast experiences in Ionic development. Please feel free to contact me. Best

$25 USD in 1 day
(42 Reviews)
7.2
MaheshJalodara

I have 2.5-year experience in Ionic/Cordova/PhoneGap Development. I complete many projects on time bases. I complete your work with accuracy.

$35 USD in 1 day
(24 Reviews)
4.5
jaiminbhanderi

I have 3+ years working experiences in the ionic framework and ionic 2 / 3. I have also Integrated Cordova plugin like push notification, Facebook and Google Login etc. I have created a dynamic content application, in More

$27 USD in 1 day
(8 Reviews)
3.8
$35 USD in 1 day
(3 Reviews)
2.0
humblehorse0308

Hello there, Nice to meet you! As per your requirement, I am very much suitable for the job. kindly invite me for a chat for further discussion regarding the project. I have more than 6 years of experience More

$25 USD in 1 day
(0 Reviews)
0.0
bhartimalu

Hello Client, please have a look our Websites & Mobile application and provide your feedback for the same also give me opportunity for work. [login to view URL] -- magento [login to view URL] --- - ecomm CI ht More

$30 USD in 2 days
(0 Reviews)
0.0
harshitagraphics

Hi, With more than 9 years of experience in this industry, I am a professional full-stack web developer. I’ve good hands-on experience in following Frameworks, CMSs- WordPress, Magento, Joomla, Drupal & PHP based fr More

$100 USD in 1 day
(0 Reviews)
0.0
pratikprajapati9

i will accept in ionic [login to view URL] post connection solve and this expeince in ionic fremework .iphone and android both

$20 USD in 1 day
(0 Reviews)
0.0
kulvir01

Hope you doing great!!! I have gone through your job posting that you need to resolve issues in existing app. I would love for an opportunity to discuss this further with you. Please invite me for an interview to dis More

$25 USD in 3 days
(0 Reviews)
0.0