我尝试打电话时失败了
WLAuthorizationManager.obtainAccessToken()
使用 Ionic 2 和 MFP 8
这是消息
============== {"status":-1,"responseText":"","errorMsg":"此版本的 MobileFirst 客户端 SDK 需要高于 IFIX 8.0 的最低服务器版本.0.0-IF201701250919","errorCode":"MINIMUM_SERVER"}
我们的安装团队也安装了最新的 iFix 包。
我也附上代码片段。
app.component.ts
WL.Client.pinTrustedCertificatePublicKey('mycert.cer').then(() => {
console.log('--------SSL Pin Success-------------');
WLAuthorizationManager.obtainAccessToken().then((accessToken) => {
console.log('--------accessToken Success-------------', accessToken);
}, (response) => {
console.log('--------accessToken Failure-------------', response);
let usrname ="roney";
let passwrd = "roney@123";
let modalc = this.modal.create("UserLoginChallengeHandler",{"username":usrname,"password":passwrd});
modalc.present();
modalc.onDidDismiss((data)=>{
//further to proceed goes here
this.statusBar.styleDefault();
this.splashScreen.hide();
this.fcmInformation();
});
});
}).fail((error) => {
console.log('--------SSL Pin failed-------------', error);
});