O erro que eu recebo é esse: {"code":405 ,"msg":"network error"} .
O celular tem tem internet e funciona normalmente a navegação pelo browser.
Abaixo a classe que utilizo para rotina de atualização.
` import { Component } from '@angular/core';
import { NavController, Platform, AlertController, LoadingController } from 'ionic-angular';
import { AppUpdate } from '@ionic-native/app-update';
import { Network } from '@ionic-native/network';
import { AppVersion } from '@ionic-native/app-version';
import { Deploy } from '@ionic/cloud-angular';
@Component({
selector: 'page-usuario',
templateUrl: 'usuario.html'
})
export class UsuarioPage {
erro: any;
url: any;
installed: any;
getPlugin: any;
getPluginName: any;
getPluginRef: any;
getPluginInstallName: any;
getSupportedPlatforms: any;
login: any;
conectado: any;
desconectado: any
tipo: any;
constructor(public alertCtrl: AlertController, private navCtrl: NavController,
private platform: Platform, private network: Network, private appUpdate: AppUpdate,
private appVersion: AppVersion, public deploy: Deploy, private loadingCtrl: LoadingController) {
}
buscarUsuario() {
this.conectado = this.network.onConnect().subscribe();
this.desconectado = this.network.onDisconnect();
this.tipo = this.network.type;
this.installed = AppUpdate.installed();
this.getPlugin = String(AppUpdate.getPlugin());
this.getPluginName = AppUpdate.getPluginName();
this.getPluginRef = AppUpdate.getPluginRef();
this.getPluginInstallName = AppUpdate.getPluginInstallName();
this.getSupportedPlatforms = AppUpdate.getSupportedPlatforms();
console.log("AppName = " + this.appVersion.getAppName().then());
console.log("PackageName = " + this.appVersion.getPackageName());
console.log("VersionCode = " + this.appVersion.getVersionCode());
console.log("VersionNumber = " + this.appVersion.getVersionNumber());
this.appUpdate
const updateUrl = 'https://SuaUrlColocaAqui/AtualizaG3APP.xml';
this.url = updateUrl;
this.appUpdate.checkAppUpdate(updateUrl).then((x) => {
this.erro = "SEM ERRO" + JSON.stringify(x).toString();
}, (erro) => {
this.erro = "COM ERRO" + JSON.stringify(erro).toString();
});
}
logar() {
}
}`