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;

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’);



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

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

    this.error = false;
    console.log('login success!');
err => {
  var result = this.auth.isAuthenticated();
this.error = true; = false;