Find Jobs
Hire Freelancers

HTTP Post call with Ionic Native Http connection Error Android

$10-30 USD

Completed
Posted almost 5 years ago

$10-30 USD

Paid on delivery
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); }); }
Project ID: 19999773

About the project

9 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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
4.8 (4 reviews)
1.6
1.6
9 freelancers are bidding on average $37 USD for this job
User Avatar
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
4.4 (48 reviews)
7.3
7.3
User Avatar
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
5.0 (64 reviews)
5.5
5.5
User Avatar
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 framework like- Laravel, CodeIgniter, Yii. I am well equipped in Core PHP, MYSQL, JavaScript, JQUERY, AJAX and designing through Adobe Photoshop, including HTML5, CSS2/3, Bootstrap (responsive sites). I do take pride in my ability to produce themes which pass the validation for XHTML and CSS as per W3C standards. I’ve expertise in REST web service, RESTful services & RESTful programming model. I’ve worked with JSON format: a result of a request to Web Service/Site was in that format & we successfully parsed it in the web-app. Look forward to discussing this work in more details with you. Thanks, Harry.
$100 USD in 1 day
5.0 (2 reviews)
3.9
3.9
User Avatar
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 in web & mobile app development you will get good quality work from me. You will never disappointed while working with me. Thanks & Regards.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
exton, United States
5.0
11
Payment method verified
Member since May 12, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.