Need help with Login

hello everyone I have been trying solve this problem the past couple of days. I was never able to login from the iOS when I deployed once. We are able to login using Android version which shares the same code.

The application makes a request to our platform to authenticate it. The server is a backend that I can’t login. When attempting to login. I get this messages. " Invalid name or password" The login credentials are correct. When I try to go to connect to the server I get this message. " The server does not support the functionality required to fulfill the request." Please let me know if you need additional information.

import { Component } from ‘@angular/core’;
import { IonicPage, NavController, NavParams } from ‘ionic-angular’;
import { AuthProvider } from ‘…/…/providers/auth/auth’;
import { HomePage } from ‘…/home/home’;
import { StorageProvider } from ‘…/…/providers/storage/storage’;
import ‘…/…/assets/js/main.js’;
declare var initialize_mqtt: any;
declare var Publish_Topic: any;
/**

@Component({
selector: ‘page-login’,
templateUrl: ‘login.html’,
})
export class LoginPage {

constructor(public navCtrl: NavController, public navParams: NavParams, private auth: AuthProvider, private store: StorageProvider) {
}

mqtt: any;
ionViewDidLoad() {
console.log(‘ionViewDidLoad LoginPage’);

console.log('token',this.auth.getToken('access_token'));

}

username : string;
password: string;
error: boolean = false;
show:boolean = true;

login(){
console.log(‘I am in!’);
console.log(this.username);
console.log(this.password);
this.auth.validateAuth(this.username,this.password).subscribe((resp) => {
console.log(“I am here!!”);
var r = resp.json();
console.log(“response”, r);
console.log(Object.keys(r));
if (Object.keys(r).indexOf(‘access_token’) !== -1 && Object.keys(r).indexOf(‘refresh_token’) !== -1 ){
this.auth.storeToken(‘access_token’,r[‘access_token’]);

    this.error = false;
    console.log('login success!');
    this.navCtrl.setRoot(HomePage);
  }
        
},
err => {
  console.log("Error!!!!!");
  var result = this.auth.isAuthenticated();
console.log(result);
this.error = true;
this.show = false;
});

}

}